DEV Community

Discussion on: 10 React Hooks Explained ✨

Collapse
 
sabrielz profile image
Sadewo Brilian Rafael • Edited

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.