Skip to content

Commit aab7cf5

Browse files
cinantimche
authored andcommitted
Change syntax in Readme.md (redux-utilities#302)
* Fix syntax error in Readme.md * Fix formatting
1 parent ba71c68 commit aab7cf5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ const { increment, decrement } = createActions({
4646

4747
const reducer = handleActions(
4848
{
49-
[combineActions(increment, decrement)](
49+
[combineActions(increment, decrement)]: (
5050
state,
51-
{
52-
payload: { amount }
53-
}
54-
) {
51+
{ payload: { amount } }
52+
) => {
5553
return { ...state, counter: state.counter + amount };
5654
}
5755
},

0 commit comments

Comments
 (0)