Skip to content

Instantly share code, notes, and snippets.

@Lucifier129
Created June 8, 2018 23:49
Show Gist options
  • Save Lucifier129/196a719d37aa04b1f9c31a890dc5a1dc to your computer and use it in GitHub Desktop.
Save Lucifier129/196a719d37aa04b1f9c31a890dc5a1dc to your computer and use it in GitHub Desktop.
import React from 'react'
import { render } from 'react-dom'
import { reactive } from 'rxjs-react'
import { interval } from 'rxjs'
const Count = props => <h1>count {props.count} from reactive props</h1>
const app = reactive(<Count count={interval(10)} />)
render(app, document.getElementById('root'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment