Building React.useState From Scratch
In React, hooks are just functions that let you preserve state between renders. One of the most widely used hooks is useState.
When you call useState, it gives you two things:
The current value of the state
A function to update that state
The key...
shoebilyas.hashnode.dev5 min read