Skip to content

Instantly share code, notes, and snippets.

View gevgeny's full-sized avatar
🚀
I may be slow to respond.

Eugene Gluhotorenko gevgeny

🚀
I may be slow to respond.
View GitHub Profile
@gevgeny
gevgeny / IncrementBox.jsx
Last active October 23, 2016 09:34
One more try to implement react-redux app with fractal architecture to localize ui specific state
import { connectUi } from './ui'
import reducer, { increment } from './reducer'
export default const compose(
connectUi(
{ reducer, initialState: { value: 0 } },
({ value }) => ({ value }),
(dispatch, { uiKey }) => ({
onIncrement: item => dispatch(increment(uiKey))
})