Skip to content

Commit

Permalink
better README 🔮
Browse files Browse the repository at this point in the history
  • Loading branch information
edvincandon committed Jun 14, 2017
1 parent 97e1a9c commit 68ea576
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ const app = new Vue({

**main.vue**

Use the Provider component from revux and bind your redux store. The store will be provided to all children components.
Use the Provider component from revux and bind your redux store. The store will be provided to all children components via vue's inject/provide mechanism.

```js
<template>
<Provider :store="store">
<connectedComponent></connectedComponent>
<connectedComponent>
</connectedComponent>
</Provider>
</template>

Expand All @@ -74,7 +75,7 @@ Use the Provider component from revux and bind your redux store. The store will

**connectedComponent.vue**

Use the `connect` method to map state to data and map actions to dispatch.
Import the `connect` method from `revux` to map state and actions to your instance's data.
Here our state looks something like `{ status: 'foobar' }`

```js
Expand Down

0 comments on commit 68ea576

Please sign in to comment.