プロジェクト
GitHubで見る
didierfranc/react-waterfall
概要
新しい Context API を基盤とする React ストア
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- -1
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルreact-waterfall
React store built on top of the new context API
Basics
store.js
import createStore from 'react-waterfall'
const config = {
initialState: { count: 0 },
actionsCreators: {
increment: ({ count }) => ({ count: count + 1 }),
},
}
export const { Provider, connect, actions } = createStore(config)
App.js
import { connect, Provider, actions } from './store'
let Count = ({ count }) => count
Count = connect(({ count }) => ({ count }))(Count)
const App = () => (
<Provider>
<Count />
<button onClick={actions.increment}>+</button>
</Provider>
)
Devtools
During development redux-devtools are automatically enabled. Install the extension.
Contributors
https://github.com/didierfranc/react-waterfall/graphs/contributors
Links
関連プロジェクトを探す
読み込み中…