React class to functional: states
In 2018 React introduced Hooks. "They let you use state and other React features without writing a...
Tags: react, refactoring, usestate, hooks