1.0.5 • Published 3 years ago

react-rxstore-watch v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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>
    )
}
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago