Skip to content

Commit 69e2b65

Browse files
author
jacobawenger
committed
Updated README with usage instructions.
1 parent afc5298 commit 69e2b65

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,22 @@ persistent, realtime backend to effortlessly keep all of your clients in sync!
77

88
Read our [blog post](https://firebase.com/blog/2014-05-01-using-firebase-with-react.html) on using Firebase with React and check out our [live Todo app demo](https://reactfiretodoapp.firebaseapp.com/) to get started!
99

10-
API Reference
11-
-------------
12-
To add the ReactFireMixin to your component, add the ReactFireMixin's JavaScript file to your project and then update the component's mixins property:
10+
Usage
11+
-----
12+
The ReactFireMixin can be added to you project in two ways:
13+
14+
* Manually copy ReactFireMixin.js from GitHub to you local directory.
15+
* Use bower: `bower install ReactFire`
16+
17+
To use the ReactFireMixin in a React component, update the component's mixins property:
1318

1419
var ExampleComponent = React.createClass({
1520
mixins: [ReactFireMixin],
1621
...
1722
});
1823

24+
API Reference
25+
-------------
1926
###bindAsArray(firebaseRef, bindVar)
2027

2128
Creates a binding between Firebase and the inputted bind variable as an array. The Firebase

0 commit comments

Comments
 (0)