Live data from Hacker News

Things every React.js beginner should know

camjackson.net

1–10 of 247 posts

Re: Things every React.js beginner should know

#6

Google cache: http://webcache.googleusercontent.com/search?q=cache:https:/...

Should be back up now!

Hey, thanks for this.

With regards to redux-thunk, have you taken a look at redux-saga[0]? Any thoughts?

[0] https://github.com/yelouafi/redux-saga

Re: Things every React.js beginner should know

#7

#10: This guide will be out of date in 3 months.

Good that with Google you can limit your search to a certain time frame. Personally, when I Google stuff about React, I set filter to "Past month" so that most results are quite up to date. I wonder if in the future the project that you start doing in the morning will use outdated libs by the evening ;)

Re: Things every React.js beginner should know

#8

Earlier quoted context omitted.

Should be back up now!

Hey, thanks for this. With regards to redux-thunk, have you taken a look at redux-saga[0]? Any thoughts? [0] https://github.com/yelouafi/redux-saga

I've seen it mentioned by a few people, including Redux creator Dan Abramov (who is very open about tweeting links to 'competing' libraries!), but I've only taken a brief look so far.

My initial impression is that it seems really interesting, although I wonder if the use of generators will scare people away. Many devs are already exhausted with the number of new JavaScript features they're being told to learn.

I definitely want to dig a bit deeper and try it out properly though.

Re: Things every React.js beginner should know

#9
> 5. Use Redux.js

Well, that is not really something every React.js beginner should know. Feels weird to say that a X beginner should learn framework Y since he is probably just interested in X...

> 6. Always use propTypes

Worth mentioning that this slows down your application since React needs to check all the props. Don't forget to set NODE_ENV=production when compiling your production script.

Re: Things every React.js beginner should know

#10
I'm not a React or Angular expert, but do you really put HTML inside of your JS code? It just bothers me too much. We spent years in early web days learning that code and templates should be separate, yet here we are putting HTML inside of code, which goes against years of practice. Can anyone share their professional thoughts about this?
Post reply on HN