Skip to content

Commit

Permalink
fix(docs): correct order of returned values
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibbedi committed Feb 2, 2020
1 parent 8e0d59a commit 8359c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function effect(state, action) {

// using the hook
const MyComponent = () => {
const [dispatch, state] = useReducerWithSideEffects(reducer, effect);
const [state, dispatch] = useReducerWithSideEffects(reducer, effect);
};
```

Expand Down

0 comments on commit 8359c72

Please sign in to comment.