10 Advanced React hooks for scaling
This chapter covers
- Structuring data flow with React Context
- Managing complex state with reducers
- Creating custom hooks for code reuse
So far, you’ve learned all you need to know to build small, simple React applications by yourself. You have all the knowledge and tools required to create stateful, interactive, and relevant React widgets with a few interconnected components—but only as long as you’re working on fairly small projects.
In the real world, your React applications will most likely be a lot bigger and more complex than any of the examples we’ve examined thus far. You could create small widgets (e.g., a BMI calculator) for a website that have just a couple of components and still do a good job, ...
Get React Quickly, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.