useState is a React Hook . We call useState inside a function component to add some local state to it. React will preserve this state between re-renders. let us discuss how useState is used import { useState } from 'react'; function Example() { ...
harshitbharani.hashnode.dev3 min read
No responses yet.