The useState Hook in ReactJS
State: hooked.

In this post I’ll be making a quick intro to the useState hook, as well as giving some tips when using it.
useState basics
The useState hook is the most commonly used hook in ReactJS, and helps us with two things:
- It preserves the value of a variable between renders.