Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed - typo #847

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/API/Arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ The `options` object is optional, and can include any of the following.

Also you can specify alternative values right in the state object (in the initial state of the reducer) by adding `toJSON` function:

In the example bellow it will always send `{ component: '[React]' }`, regardless of the state's `component` value (useful when you don't want to send lots of unnecessary data):
In the example below it will always send `{ component: '[React]' }`, regardless of the state's `component` value (useful when you don't want to send lots of unnecessary data):
```js
function component(
state = { component: null, toJSON: () => ({ component: '[React]' }) },
Expand All @@ -143,7 +143,7 @@ function component(
You could also alter the value. For example when state is `{ count: 1 }`, we'll send `{ counter: 10 }` (notice we don't have an arrow function this time to use the object's `this`):
```js
function counter(
state = { count: 0, toJSON: function (){ return { conter: this.count * 10 }; } },
state = { count: 0, toJSON: function (){ return { counter: this.count * 10 }; } },
action
) {
switch (action.type) {
Expand All @@ -154,7 +154,7 @@ function counter(
```

### `actionSanitizer` / `stateSanitizer`
- **actionSanitizer** (*function*) - function which takes `action` object and id number as arguments, and should return `action` object back. See the example bellow.
- **actionSanitizer** (*function*) - function which takes `action` object and id number as arguments, and should return `action` object back. See the example below.
- **stateSanitizer** (*function*) - function which takes `state` object and index as arguments, and should return `state` object back.

Example of usage:
Expand Down Expand Up @@ -221,7 +221,7 @@ const composeEnhancers = composeWithDevTools({
persist: true, // persist states on page reloading
export: true, // export history of actions in a file
import: 'custom', // import history of actions from a file
jump: true, // jump back and forth (time travelling)
jump: true, // jump back and forth (time traveling)
skip: true, // skip (cancel) actions
reorder: true, // drag and drop actions in the history list
dispatch: true, // dispatch custom actions or action creators
Expand Down