Creating reusable custom React Hooks
Published in
5 min readSep 8, 2019
Since React 16.8 you no longer need class components to work with stateful logic. The way to do it now looks like this:
The code above works perfectly on a functional component (previously referred to as ‘stateless functional…