Edit product


A React Developer’s Guide to Hooks

After a long time trying to figure out how hooks work, you finally realize that no one understands the full picture. You’ve seen several ‘How-to-use-react-hooks’ articles, but they all contradict each other, and you still can’t see the big picture.

You feel like something is wrong in your head – like you need to go to a hardware shop and buy bigger RAM or maybe just simpler plugs.

Learn more about the different ways you can use hooks to take your React application development experience to the next level. This new way of writing React components will make your code cleaner and more comfortable to test!

This React Developer’s Guide to Hooks is a guide in 12 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 many 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 primary use of useState and useEffect.

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.

100% React

The idea is not to present you dozens of awesome hooks: First, you will only need two, useState and useEffect. First, we’ll deep dive into these two, and 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).

Runnable examples

If you choose to purchase the pack with the examples source code, you’ll be able 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.

You can find my writings on my blog (scastiel.dev) or hear what I have to say on Twitter (@scastiel). You can also say hi by sending me an email at sebastien@castiel.me.

I’m a student, unemployed, or can’t afford the book

Just send me an email at sebastien@castiel.me, we’ll find a way so you can get the book anyway!

What if I don’t like what I bought?

If you are not satisfied with the guide, I offer you a 30-day money-back guarantee, no question asked. Just shoot me an email at sebastien@castiel.me.

Table of contents

  • Foreword
  • 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
  • Lesson 12 - Custom hooks to use the browser’s APIs  🌟 NEW!
  • Appendix A - Additional resources and links
  • Appendix B - Solutions to exercises

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, I will inform you of all the updates. 😉

0 ratings

  • A guide to stop struggling with hooks and use them at their full potential.
  • Lessons12
  • Pages (PDF)83
  • Money back guarantee30 days
  • Last updatedJan. 16, 2021


A React Developer’s Guide to Hooks

Enter your info to complete your purchase of Book only


···· ···· ···· 4242
Test card



Use a different card?


pp paypal

or pay with

We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

or pay with

You'll be charged US$7.99.

Your purchase was successful!

We charged your card and sent you a receipt

    Gumroad Library

    Download from the App Store or text yourself a link to the app

    Good news! Since you already have a Gumroad account, it's also been added to your library.

    Powered by Gumroad