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