Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useReducer in react

const [state, dispatch] = useReducer(
    reducer,
    {count: initialCount}
  );
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #useReducer #react
ADD COMMENT
Topic
Name
3+7 =