Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add example
  • Loading branch information
fej-snikduj committed Oct 24, 2017
commit 7f3b69e506f8aa7333a528685c179d85984b68db
8 changes: 8 additions & 0 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ import { getDotStrPath } from './reducer'
* // this.props.todos loaded from state.firebase.data.todos
* todos: getValueAt(firebase, 'data/todos/user1')
* })
* @example <caption>Basic</caption>
* import { connect } from 'react-redux'
* import { firebaseConnect, getValueAt } from 'react-redux-firebase'
* // easily replace pathToJS with getValueAt
* @connect(({ firebase }) => ({
* // this.props.auth loaded from state.firebase.auth
* auth: getValueAt(firebase, 'auth')
* })
* @example <caption>Default Value</caption>
* import { connect } from 'react-redux'
* import { firebaseConnect, getValueAt } from 'react-redux-firebase'
Expand Down