when will u use usereducer over usestate in react component code example
Example: usestate or usereducer
//When it's just an independent element of state you're managing
useState
//When it's just an independent element of state you're managing
useState