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.6 Kas 2018
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.6 Kas 2018