Skip to content

Commit

Permalink
v2.0.0 docs updates
Browse files Browse the repository at this point in the history
* v2.0.0 is now the default and selected version of docs
  • Loading branch information
prescottprue committed Dec 31, 2017
1 parent 44d8eae commit f294d89
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8,137 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Expand Up @@ -9,7 +9,7 @@
}]
],
"plugins": [
["lodash", { "id": ["lodash"]}],
"lodash",
"add-module-exports",
"transform-object-rest-spread",
"transform-object-assign",
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -33,12 +33,12 @@ The [Material Example](https://github.com/prescottprue/react-redux-firebase/tree
## Install

```bash
npm install --save react-redux-firebase@next
npm install --save react-redux-firebase
```

## Use

Include `reactReduxFirebase` in your store compose function and `firebaseReducer` in your reducers:
Include `reactReduxFirebase` (store enhancer) and `firebaseReducer` (reducer) while creating your redux store:

```javascript
import React from 'react'
Expand Down Expand Up @@ -89,7 +89,7 @@ const App = () => (
render(<App/>, document.getElementById('root'));
```

Todos component (`./Todos`):
The Firebase instance can then be grabbed from context within your components (`withFirebase` and `firebaseConnect` Higher Order Components provided to help):

**Add Data**

Expand Down Expand Up @@ -119,7 +119,7 @@ export default withFirebase(Todos)
// or firebaseConnect()(Todos) if attaching listeners
```

**Load Data (listeners managed on mount/unmount)**
**Load Data (listeners automatically managed on mount/unmount)**

```jsx
import React from 'react'
Expand Down
12 changes: 6 additions & 6 deletions book.json
Expand Up @@ -22,17 +22,17 @@
"gitbookConfigURL": "https://raw.githubusercontent.com/prescottprue/react-redux-firebase/master/book.json",
"options": [
{
"value": "http://docs.react-redux-firebase.com/history/v1.4.0/",
"text": "Version 1.4.0"
"value": "http://docs.react-redux-firebase.com/history/v2.0.0/",
"text": "Version 2.0.0",
"selected": true
},
{
"value": "http://docs.react-redux-firebase.com/history/v1.5.0/",
"text": "Version 1.5.0",
"selected": true
"text": "Version 1.5.0"
},
{
"value": "http://docs.react-redux-firebase.com/history/v2.0.0/",
"text": "Version 2.0.0"
"value": "http://docs.react-redux-firebase.com/history/v1.4.0/",
"text": "Version 1.4.0"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f294d89

Please sign in to comment.