Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fix(package readme): Update readme code example and add keywords to p…
Browse files Browse the repository at this point in the history
…ackage.json
  • Loading branch information
elcoosp committed May 26, 2018
1 parent aacadc5 commit a523677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const reducer = matchReducer(
}
)

reducer(null, { type: 'INC', payload: 1 }) // { counter: 1, something: 'else' }
reducer(null, { type: 'INC', payload: 1 })
// { counter: 1, something: 'else' }
```

### makeActionsAndReducer
Expand All @@ -70,7 +71,8 @@ const { reducer, actionCreators } = makeActionsAndReducer(
}
)

reducer({ counter: 0 }, actionCreators.incSomething(1) }) // { counter: 1 }
reducer({ counter: 0 }, actionCreators.incSomething(1) })
// { counter: 1 }
```

## Support
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"path": "./node_modules/cz-conventional-changelog"
}
},
"keywords": [],
"keywords": ["redux", "matching", "action creators", "reducer"],
"author": "elcoosp <elcoosp@gmail.com>",
"license": "MIT",
"bugs": {
Expand Down

0 comments on commit a523677

Please sign in to comment.