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  Why states are used in React?

Leave a Reply

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