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...
Markdown supported · ⌘↵ to post
No responses yet.