What does React useReducer hook take as input and what does it return? code example
Example: what does the useReducer do in react
const [state, dispatch] = useReducer(reducer, initialState);
const [state, dispatch] = useReducer(reducer, initialState);