Live data from Hacker News

Learn React by building a web app

udilia.com

41–50 of 107 posts

Re: Learn React by building a web app

#41

I fear that by the time I'm good enough at react, another library will come out

That's why I am going to wait till next year to start learning JQuery. Should be stable and mature by then.

Too late, http://youmightnotneedjquery.com/

Re: Learn React by building a web app

#42

I fear that by the time I'm good enough at react, another library will come out

React will be around a while due to the ecosystem and the fact massive companies are using it. Big companies aren't going to rewrite their entire front-end for the next flavor of the month framework. React-native gives it staying power as well.

Re: Learn React by building a web app

#43

Earlier quoted context omitted.

Probably next big thing will be straight web components or UI libraries like react or angular converting to web components. So everything should be nicely interoperable in the future, it'd just be a matter of how your modeling your data.

I recently found https://svelte.technology and looking forward to trying it out. It has no run-time like React or any other virtual DOM engine, but instead does compile-time static analysis. It is a Rich Harris project (authored Rollup, Ractive, Bublé) so might be worth paying attention to.

Ractive was a neat little library which was under appreciated. React took over the world with all the immutable - one way binding and virtual Dom thing.. otherwise ractive was far lighter and better than Angular

Re: Learn React by building a web app

#44
post #37

Earlier quoted context omitted.

i fear that eventually you'll be able to just design something in Sketch and press a button for the rest...

And then be asked a dozen questions how the layout should behave on small and wide screens, should the headline be ellipsized or word-wrapped? I don't see a general purpose solution for this kind of problem coming anytime soon.

Why not have defaults for that and let u choose it if needed?

Re: Learn React by building a web app

#45
post #32
post #17

Earlier quoted context omitted.

Eh, React is 5 years old. I've been writing it professionally for 3. I'm not worried. And honestly -- React doesn't have the same pain points jQuery/Backbone/Angular1 did where I couldn't wait to move on after 6 months. We'd have to see an absolutely massive paradigm shift before I'd regret writing my apps in React.

I feel this way about React but Redux seems awkward and worthy of replacement. Am I in the minority on this?

I find conceptually Redux is straightforward enough, just really wordy. I think perhaps if I got to choose again I might consider Mobx. I still use it for my react stuff but most new stuff I'm using Vue.

Re: Learn React by building a web app

#46
post #6

One thing completely missing from courses is how to handle animations. Most React apps have no animations whatsoever (including mine, because I have no idea how to implement them), but they're important for usability IMHO.

http://airbnb.io/lottie/ the perfect solution (works for React and React Native too).

Wow, this looks amazing. Have you used it for web?

Re: Learn React by building a web app

#48
post #45
post #32

Earlier quoted context omitted.

I feel this way about React but Redux seems awkward and worthy of replacement. Am I in the minority on this?

I find conceptually Redux is straightforward enough, just really wordy. I think perhaps if I got to choose again I might consider Mobx. I still use it for my react stuff but most new stuff I'm using Vue.

Mobx and Redux have slightly different use cases, IMO. I prefer Redux for larger projects and Mobx for smaller ones, though I've only used Redux in production so far.

Re: Learn React by building a web app

#49
post #32
post #17

Earlier quoted context omitted.

Eh, React is 5 years old. I've been writing it professionally for 3. I'm not worried. And honestly -- React doesn't have the same pain points jQuery/Backbone/Angular1 did where I couldn't wait to move on after 6 months. We'd have to see an absolutely massive paradigm shift before I'd regret writing my apps in React.

I feel this way about React but Redux seems awkward and worthy of replacement. Am I in the minority on this?

No, you're probably in the majority. The problem isn't really the core concept of Redux, but needing to integrate the whole ecosystem around it - thunks, sagas, selector library, various other middleware.

Standard redux is just too low-level.

Take a look at Mobx State Tree https://github.com/mobxjs/mobx-state-tree

Re: Learn React by building a web app

#50
post #17

I fear that by the time I'm good enough at react, another library will come out

Eh, React is 5 years old. I've been writing it professionally for 3. I'm not worried. And honestly -- React doesn't have the same pain points jQuery/Backbone/Angular1 did where I couldn't wait to move on after 6 months. We'd have to see an absolutely massive paradigm shift before I'd regret writing my apps in React.

I'm somewhat regretting not moving over to Vuejs from React when I had a better time opportunity. And I actually like JSX.
Post reply on HN