Lesson 1Store a local state with useState
useState is usually the first hook you hear about, because it solves the
frustration developers had before hooks landed in React: the impossibility to
have a local state in a functional component.
With useState, you will be able to:
- store the value entered in an input,
- store the result of a network request,
- store and update a flag to decide what to display, etc.