Skip to content

Commit

Permalink
add: finish first version - docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdouglas committed Sep 1, 2019
1 parent 8d2be67 commit 69eb7a0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
- [API](#api)
- [`onli(actions)`](#onliactions)
- [`onliSend(dispatch, types)`](#onlisenddispatch-types)
- [`onliReducer(actions)`](#onlireduceractions)
- [`onliTypes(actions)`](#onlitypesactions)
- [License](#license)

## Benefits over traditional redux/useReducer usage (with `switch`)

Expand Down Expand Up @@ -288,3 +291,15 @@ const _getPokemon = async ({ name, send }) => {
}
}
```

### `onliReducer(actions)`

Receives an `actions` object and return a reducer.

### `onliTypes(actions)`

Receives an `actions` object and return an array with strings (types).

## License

[MIT License](https://ericdouglas.mit-license.org/) © Eric Douglas

0 comments on commit 69eb7a0

Please sign in to comment.