In earlier versions of React, you were required to use a class component instead of a function component if a component needed to manage state. If you started with a function component that later needed to use state, you would have to rewrite the fun...
peanutbutterjavascript.hashnode.dev6 min readNo responses yet.