Front-end development today is massively overwhelming.
The React ecosystem is huge – Redux, React Router, Webpack, Babel… Where do you even start?
Most people begin by reading tutorials, but sifting through them to find the one that makes it 'click' is an exercise in frustration. On top of that, they dish out pages of code and leave it up to you to “learn by osmosis.”
If you've tried to learn React on your own, you've probably had the same experience I did: after sifting through countless tutorials and video, you still can’t cobble together your own app. One second you’re nodding along, sure that you understand. The next, you’re staring at a blinking cursor wondering what to type.
Thousands of people are already using React in their jobs or startups, and you can too -- once you figure it out.
But what if you could skip straight to being as productive with React as you are with your current framework of choice?
What if you were able to code as fast as you can think, using the JavaScript you know and love?
Writing apps could be fun again! And fast.
Teaching yourself React can be overwhelming… but it doesn’t have to be. You can master the fundamentals in a matter of days.
Here's the thing: you need real practice. Not just nodding along to tutorials, but actually building examples and exercises. That's how you gain mastery, and this book will show you how.
You’ll get hands-on practice building a series of small components and micro apps – no big monolithic app here. The bite-size apps will have you reviewing concepts until they’re second nature.
With the included exercises you will be writing your own code right from the start – this isn’t a “copy, paste, watch it run” tutorial.
Don't worry, we won't build any "ToDo" apps. The world already has enough of those.
Learn to turn mockups directly into code, how to “think in components,” and how to handle changing state in React's world of one-way data flow.
Here's what the book covers:
- Easy project setup with Create React App (you’ll be running code within minutes)
- Debugging strategies for when things go wrong
- Mastering JSX syntax, including “if”s, loops, and dynamic child components
- Using props to communicate between components, and make them as reusable as possible
- How PropTypes can save you time debugging and help “future you” remember how to use the components you wrote
- Using the “children” prop to render dynamic content
- How to write React in the modern ES6 style, with a gentle introduction to ES6 syntax (you don't need to know ES6!)
- How input controls work in React (controlled and uncontrolled)
- Where and how to properly use component state in a React application
- Stateful vs Stateless components
- The lifecycle of a component, and how to use it to your advantage
The book includes examples large and small, and 25 exercises to hone your knowledge.
Buy Pure React and start learning React today!