An open API service indexing awesome lists of open source software.

https://github.com/co2-git/react-ez-store

Easily share data across different React components. Like Redux or mobx, but dead simpler!
https://github.com/co2-git/react-ez-store

Last synced: about 1 year ago
JSON representation

Easily share data across different React components. Like Redux or mobx, but dead simpler!

Awesome Lists containing this project

README

          

react-store
===

React store

# Install

```bash
# with yarn
yarn add @francoisv/react-store

# with npm
npm i -S @francoisv/react-store
```

# Click counter example

```jsx
import React from 'react'
import store, { withStore } from '@francoisv/react-store'

const counter = store.number(0)

const ClickCounter = withStore(counter)(() => (


Clicked { store.get(counter) }

store.increment(counter) }>Click

))
```

More examples in the [wiki](https://github.com/co2-git/react-ez-store/wiki)