Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrickyspanish committed May 4, 2019
1 parent 7c6bc7c commit f3d48da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default store

Thats it! Now you can use the action creators of your ducks.

```javascripts
```javascript
import scorePlayerADuck from "scorePlayerA/duck";
import scorePlayerBDuck from "scorePlayerB/duck";
import store from "src/store"
Expand All @@ -95,7 +95,7 @@ store.dispatch(incrementScorePlayerB())

https://iamrickyspanish.github.io/redux-scoped-ducks

## What does scoping a duck mean?
## What does "scoping a duck" mean?

Scoping means to manipulate the action types used in a duck by replacing the reducer info. So `app/reducerA/ACTION` becomes `app/reducerB/ACTION`. This affects action types, the actions returned by creatorsAdditionaly and the reducer.
Additionaly a meta attribute `unscopedActionType` is added to all actions returned by the ducks action creators.
Expand Down

0 comments on commit f3d48da

Please sign in to comment.