You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,22 @@ persistent, realtime backend to effortlessly keep all of your clients in sync!
7
7
8
8
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!
9
9
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:
13
18
14
19
var ExampleComponent = React.createClass({
15
20
mixins: [ReactFireMixin],
16
21
...
17
22
});
18
23
24
+
API Reference
25
+
-------------
19
26
###bindAsArray(firebaseRef, bindVar)
20
27
21
28
Creates a binding between Firebase and the inputted bind variable as an array. The Firebase
0 commit comments