DEV Community

Discussion on: React Hooks - useReducer

Collapse
 
petrtcoi profile image
Petr Tcoi

Is there any naming convention for components with useDispatch from react-redux?

const dispatch = useDispatch()
and
const [state, dispatch] = useReducer(reducer, initialState)