1.1.3 • Published 3 years ago

react-rxstore-observer v1.1.3

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

React RxStore Observer

This is the official React bindings for RxStore Observer.

This project is currently in development.

Usage:

import { createStoreHooks } from 'react-rxstore-observer'
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.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.2

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago