Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
js Fixed some docs typos and updated examples Firebase project (#97) May 25, 2016
README.md Upgraded to the Firebase 3.x.x SDK (#91) May 25, 2016
index.html Replace npmcdn.com with unpkg.com (#113) Sep 2, 2016

README.md

Comments Box | ReactFire Example

Setup Instructions

To run this example locally, either download the whole ReactFire repository or just this /examples/commentsBox/ directory. Then replace the example Firebase URL with your own Firebase URL in the js/app.js file:

var firebaseApp = "https://my-firebase-app.firebaseio.com/"

Finally, start up a server via Python (or your preferred method):

$ python -m SimpleHTTPServer 8080

You can then visit the example in the browser of your choice at http://127.0.0.1:8080/.

If you have downloaded the entire repository visit the example at http://127.0.0.1:8080/examples/commentsBox/

Description

The official React tutorial is a great introduction to React. This example replaces the REST-like server used in the tutorial with Firebase and ReactFire.

ReactFire allows us to strip out the polling concept as well as the jQuery AJAX calls. Instead, with ReactFire, we can bind right to Firebase and keep everything in sync in realtime.