Skip to content

Instantly share code, notes, and snippets.

@Lucifier129
Created June 8, 2018 23:51
Show Gist options
  • Save Lucifier129/a8df36f03d81b01bf3d4485f7ca8288b to your computer and use it in GitHub Desktop.
Save Lucifier129/a8df36f03d81b01bf3d4485f7ca8288b 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 App = reactive(props => <h1>count {interval(props.period)}</h1>)
render(<App period={10} />, document.getElementById('root'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment