1.0.5 • Published 4 years ago

reobs v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

reobserve

React + Rxjs utilities

NPM JavaScript Style Guide

Install

npm install --save reobs

Usage

With Async Component

import React from 'react'

import { Async } from 'reobs'
import { BehaviorSubject } from 'rxjs'

const now = new BehaviorSubject(new Date().toLocaleString())
setInterval(() => {
  now.next(new Date().toLocaleString())
}, 1000)

const App = () => {
  return (
    <Async as={({children}) => <h2>{children}</h2>}>
      {now}
    </Async>
  )
}

export default App

License

MIT © hoanthan

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago