diff --git a/docs/guide.md b/docs/guide.md index 46720ac..4a6f138 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -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({