An open API service indexing awesome lists of open source software.

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

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!"
}
}
```