Fixed typo in docs guide (#101)

A forgotten `()` after `database`
This commit is contained in:
Haroen Viaene
2016-06-07 19:21:31 +02:00
committed by Jacob Wenger
parent 3c19ed1cf7
commit 08b89a1087

View File

@@ -81,7 +81,7 @@ which is run once, immediately before the initial rendering of the component:
```js
componentWillMount: function() {
this.firebaseRef = firebase.database.ref("items");
this.firebaseRef = firebase.database().ref("items");
this.firebaseRef.on("child_added", function(dataSnapshot) {
this.items.push(dataSnapshot.val());
this.setState({