Read your code more easily with React Hooks and the useCallback Hook.

I had the opportunity this week to meet with my long time friend who encouraged me to get into coding. We talked shop for a bit, which led into a discussion about React, React Hooks, how important hooks are, and how I sadly knew little about them. By the end of our conversation, we had refactored a bunch of code in one of my projects to implement hooks and my first impressions were this:

  • React Hooks can make your code way more easy to read.
  • Dependencies in the useCallback hook are a lot…