https://github.com/dmurawsky/react-dom-obj-firebase
Uses react-dom-obj to create a real-time DOM synced with Firebase
https://github.com/dmurawsky/react-dom-obj-firebase
firebase react
Last synced: 3 months ago
JSON representation
Uses react-dom-obj to create a real-time DOM synced with Firebase
- Host: GitHub
- URL: https://github.com/dmurawsky/react-dom-obj-firebase
- Owner: dmurawsky
- Created: 2017-02-16T06:22:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T06:48:45.000Z (over 9 years ago)
- Last Synced: 2025-03-16T17:11:36.727Z (over 1 year ago)
- Topics: firebase, react
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React DOM Object
Uses react-dom-obj to create a real-time DOM synced with Firebase
## Usage
```sh
npm install react-dom-obj-firebase --save
```
```javascript
import RedomoFB from 'react-dom-obj-firebase';
RedomoFB.init({
apiKey: ,
authDomain: ,
databaseURL:
});
RedomoFB.start('firebase-path');
// Call RedomoFB.stop('firebase-path'); to stop real-time updates from Firebase
```
## Example Firebase Snapshot
```json
{
"id" : "app",
"dom" : {
"type" : "h1",
"content" : "Realtime DOM Test!"
}
}
```