A React Developer’s Guide to Hooks
or download a sample
React Hooks are awesome, but they are not easy to use every day.
A guide in 11 lessons to help you:
- Understand how hooks work
- Master common patterns
- Solve recurring problems
- Use hooks at their full potential
Why this book?
In my experience with React and hooks, I have faced a lot of issues, spent some time debugging to understand where these issues came from, and seen other developers make the same mistakes again and again.
I have also seen several developers during technical tests in job interviews getting lost when using hooks because they needed to go past the basic use of useState and useEffect.
This is why I wrote this guide for developers who already know and use React, maybe even hooks, but would like to use them at their full potential.
The idea is not to present you dozens of awesome hooks: to begin you will only need two, useState and useEffect. First, we’ll deep dive into these two, then we’ll see some others to solve specific problems. Always by using only React, no third-party libraries.
By buying this guide, you will get:
- A condensed presentation of hooks and how they work,
- Concrete common problems with several solutions to fix them,
- Examples all along, because they are the best way to understand,
- A list of useful online resources and third-party hooks to go deeper,
- All in a beautifully presented document (for the PDF version).
The pack contains an archive will all the examples’ source code, plus the instructions to run them locally on your machine.
About the author
I’m Sebastien Castiel, a French developer expatriated in Montreal. I have used React for several years now, and hooks for the last two years, on several projects.
What if I don’t like what I bought?
If you are not totally satisfied with the guide, I offer you a 30-day money-back guarantee, no question asked. Just shoot me an email at firstname.lastname@example.org.
Table of contents
- Lesson 1 - Store a local state with useState
- Lesson 2 - Trigger side effects with useEffect
- Lesson 3 - Custom hooks and classic async pattern
- Lesson 4 - What are hooks anyway?
- Lesson 5 - Debugging hooks
- Lesson 6 - Get the current state when dealing with async code
- Lesson 7 - Solving infinite loops when using useEffect
- Lesson 8 - Optimizing performance with useMemo and useCallback
- Lesson 9 - Debouncing a user input
- Lesson 10 - Using contexts to share values between components
- Lesson 11 - Simplify state update logic with reducers
- Additional resources and links
Note: As I’m receiving feedback from the first readers, the content might change in the next couple of weeks. If you purchase the book, you’ll be informed of all the updates 😉
or download a sample