What is the difference between React useState and useState?

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

Sizin İçin Seçtik  Why we use state in React instead of variable?

Leave a Reply

Your email address will not be published. Required fields are marked *