Sorry, I think there's an error in useReducer > reducer() method example code. No parameter action there, but the switch statement using action.type to check. Also in useDebugValue > useDisplayName() method, there's no props parameter, thanks.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sorry, I think there's an error in useReducer > reducer() method example code. No parameter action there, but the switch statement using action.type to check. Also in useDebugValue > useDisplayName() method, there's no props parameter, thanks.