useState is one of build-in react hooks available in 0.16.7 version.
useState should be used only inside functional components. useState is the way if we need an internal state and don’t need to implement more complex logic such as lifecycle methods.