Skip to content

Commit

Permalink
Link between docs in a more coherent way
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcrng committed Nov 8, 2019
1 parent 7b56de5 commit e2162ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: reduxLeaves

# `reduxLeaves(initialState, [reducersDict = {}])`

Returns a reducer function and an object.
Returns a reducer function and an actions object.

**See the [30 second demo](intro/demo.md)** for usage.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sidebar_label: actions

## Arbitrary property paths

The `actions` object returned by `reduxLeaves` can take an arbitrary path of properties after it, which typically correspond to a 'leaf' at the corresponding path from your state.
The `actions` object returned by [`reduxLeaves`](../README.md) can take an arbitrary path of properties after it, which typically correspond to a 'leaf' at the corresponding path from your state.

```js
import reduxLeaves from 'redux-leaves'
Expand Down
6 changes: 3 additions & 3 deletions website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ class Index extends React.Component {
{[
{
title: 'Write once.',
content: 'Tired of writing repetitive reducer logic for different slices of state? With Redux-Leaves, you can <b>define reducer logic for an arbitrary leaf</b>.',
content: `Tired of writing repetitive reducer logic? With Redux-Leaves, you <a href=${docUrl('example/intermediate-example')}><b>define reducer logic once</b> and can <b>use it on an arbitrary leaf of state</b></a>.`,
image: `${baseUrl}img/code.png`,
imageAlign: 'top',
},
{
title: 'Reduce anywhere.',
content: 'Redux-Leaves makes that reducer logic instantly available to you for any leaf of your state shape, through <b>an intuitive action creator API</b>.',
content: `Redux-Leaves makes that reducer logic instantly available to you for any leaf of your state shape, through <a href=${docUrl('api/create')}><b>an intuitive action creator API</b></a>.`,
image: `${baseUrl}img/hierarchy.png`,
imageAlign: 'top',
},
{
title: 'No boilerplate.',
content: 'No more need to write action creators. Redux-Leaves <b>writes your action creators for you</b> based on the reducer logic that you supply.',
content: `No more need to write action creators. Redux-Leaves <a href=${docUrl('api/actions')}><b>writes your action creators for you</b></a> based on the reducer logic that you supply.`,
image: `${baseUrl}img/ban.svg`,
imageAlign: 'top',
},
Expand Down

0 comments on commit e2162ee

Please sign in to comment.