This package has been deprecated

Author message:

We no longer maintain this project. Move to react-rxstore-observer

react-rxstore-watch
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

React RxStore Watch

This is the official React bindings for RxStore Watch.

This project is currently in development.

Usage:

import { createStoreHooks } from 'react-rxstore-watch'
import store from './store'

const [useStore, useDispatch] = createStoreHooks(store);

const AwesomeComponent = () => {
    const name = useStore(store => store.name)
    const dispatch = useDispatch()
    return (
        <div>
            Hello { name } 
            <button onClick={() => dispatch({ type: 'DO_SOMETHING_AWESOME' })}>Do something awesome!</button>
        </div>
    )
}

Package Sidebar

Install

npm i react-rxstore-watch

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

35.2 kB

Total Files

23

Last publish

Collaborators

  • blankart