From 08b89a1087088695beda58a8faa9be5be2c98dee Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Tue, 7 Jun 2016 19:21:31 +0200 Subject: [PATCH] Fixed typo in docs guide (#101) A forgotten `()` after `database` --- docs/guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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({