Skip to content

Commit 8359c72

Browse files
committed
fix(docs): correct order of returned values
1 parent 8e0d59a commit 8359c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function effect(state, action) {
108108

109109
// using the hook
110110
const MyComponent = () => {
111-
const [dispatch, state] = useReducerWithSideEffects(reducer, effect);
111+
const [state, dispatch] = useReducerWithSideEffects(reducer, effect);
112112
};
113113
```
114114

0 commit comments

Comments
 (0)