Is useState same as setState?

The only difference between the functional component and the class component at this point is instead of calling this. setState we use the function we created in the useState , in this case, setValue .

Sizin İçin Seçtik  How do I start a journey as a Web Developer?

Leave a Reply

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