Skip to content
Proyectos

didierfranc/react-waterfall has 1,316 GitHub stars and 73 forks. GitHot measured -1 stars in 24 hours and 0 in 7 days. Last checked 2026-11-12 00:01 UTC. Last push 2023-11-24.

Cómo se miden estas cifras

React store built on top of the new context API

Crecimiento de estrellas medido

in 24h
-1
in 7 days
0
in 15 days
Actualización retrasada
in 1 month
Actualización retrasada

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

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

Explorar proyectos relacionados