I’d love to read through a book on React, but I’m surprised at the poor reviews on Amazon. Perhaps I’m looking in the wrong place. Who can point me to a good one (that maybe isn’t sold from Amazon)?<p>Alternatively, why should I not be considering React? Is everybody using something else these days? Looking to build a front-end to interact with some REST APIs.
<i>Alternatively, why should I not be considering React? Is everybody using something else these days? Looking to build a front-end to interact with some REST APIs.</i><p>React is a decent choice for that. Go ahead and learn it.<p>If you want to do frontend in 99% of shops - React by itself is not enough. People will tell you it's "just a library" - and that's technically true.<p>But in the wild you'll be dealing with something I call "Enterprise React". A bloated monstrosity of a web project created with create-react-app (Which is a nightmare of needless complexity under a thin and very slow veneer of convenience). Your react and general coding skills will be secondary to your skills as a sort of npm sysadmin, because best practices are to download a library for every whim anyone ever has.<p>That is unless you never update it your packages while you are there. Which honestly - I've recently learned - is the smarter career play.<p>So sure, learn react, make your SPA. But be careful of getting too deep into it, because that way lies madness.
Maybe you are looking for "React: Up & Running: Building Web Applications" 2nd Edition? Physical book published by O'reilly on December 2021. Author is Stoyan Stefanov, a facebook engineer (ex fb I think?). Has good reviews. It's also only 230 pages.
<a href="https://www.amazon.com/React-Running-Building-Web-Applications/dp/1492051462" rel="nofollow">https://www.amazon.com/React-Running-Building-Web-Applicatio...</a><p>Hooks (functions?) are the way forward for React. Classes were the old way. But this book has both. Author's rationale is "A controversial decision was the inclusion of class components in addition to function components. Function components are likely the way forward; however, the reader is likely to encounter existing code and tutorials that talk only about class components. Knowing both syntaxes doubles the chances of reading and understanding code in the wild". Seems reasonable.<p>Also definitely take a look at the React Docs Beta at <a href="https://beta.reactjs.org/" rel="nofollow">https://beta.reactjs.org/</a><p>They seem to be a substantial improvement over the previous docs. All explanations are written using Hooks rather than classes.<p>I love this 10 min intro video to React Docs Beta by Rachel Nabors from React Conf 2021. Has subtitles. > <a href="https://www.youtube.com/watch?v=mneDaMYOKP8" rel="nofollow">https://www.youtube.com/watch?v=mneDaMYOKP8</a><p>Some comments have said React might be a way to hell, so if you wanna improve your JavaScript or CSS, there are 2 well-regarded paid courses:<p>Just JavaScript by Dan Abramov. He's a member of the React team, and a co-author of Redux and Create React App.
<a href="https://justjavascript.com/" rel="nofollow">https://justjavascript.com/</a><p>CSS course by Josh Comeau.
<a href="https://css-for-js.dev/" rel="nofollow">https://css-for-js.dev/</a><p>Both are paid courses.
Road to React, is a decent book (and the only one I read), but honestly I would recommend watching a few tutorials instead.<p>If you worried about outdatedness just try to get a book made after the introduction of React Hooks which should be end of 2018/early 2019. I think the physical Road to React on Amazon isn't updated, don't buy that lol, best to buy the ebook file from that dudes website and read it off of a kindle or something.
ReactJS is certainly worth learning. I personally use the Clone Wars on GitHub as my instruction manual when I'm not sure how to accomplish something with React and I want to see how it could be built in the real world.
freeCodeCamp has a new course: <a href="https://www.freecodecamp.org/news/free-react-course-2022/" rel="nofollow">https://www.freecodecamp.org/news/free-react-course-2022/</a><p>(All the books I learned from are out of date)