A ref callback is a little known feature in React, it’s a function to perform an action when React attaches or detaches a reference to a DOM element. It has a few use cases, let’s look at some.
Recorded live at Reactathon 2022. Learn more at https://reactathon.comGoodbye, useEffectFrom fetching data to fighting with imperative APIs, side effects are...
useReducer is an often forgotten, but extremely powerful, hook in React. It can replace many cases you might be using useState, with a number of advantages.