Browse Source

Arg is optional

main
Dan Abramov 3 years ago
parent
commit
e4aa5076c2
  1. 2
      beta/src/content/apis/react/useReducer.md

2
beta/src/content/apis/react/useReducer.md

@ -7,7 +7,7 @@ title: useReducer
`useReducer` is a React Hook that lets you add a [reducer](/learn/extracting-state-logic-into-a-reducer) to your component. `useReducer` is a React Hook that lets you add a [reducer](/learn/extracting-state-logic-into-a-reducer) to your component.
```js ```js
const [state, dispatch] = useReducer(reducer, initialArg, init) const [state, dispatch] = useReducer(reducer, initialArg, init?)
``` ```
</Intro> </Intro>

Loading…
Cancel
Save