enviante-react

2.0.1-1 • Public • Published

enviante-react

connect react components to enviante stores.

usage

example

import createStore from 'enviante';
import {createObserve} from 'enviante-react';
const connect = createStore({count: 1});
const observe = createObserve(connect);

const Counter = observe((props, {subscribe, dispatch}) => <div>
	{subscribe('count')}
	<button onClick={() => dispatch('count', count => count + 1)} />
</div>);

licence

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i enviante-react

Weekly Downloads

1

Version

2.0.1-1

License

ISC

Last publish

Collaborators

  • quarterto