redux-reaction
npm install --save-dev redux-reaction
Goes one step further than redux-actions by placing your actions and reducers in the same place. Example:
// actions.js const initialState = todos: const addTodo = const clearTodos = const todo = todo
// store.js reducer
// App.jsx const selector = state @ { superprops context thisstate = text: '' } { this } { thispropsactions } { const actions todo = thisprops return <div> <ul> todotodos </ul> <button onClick=actionsclearTodos>Clear</button> <button onClick=::thisaddTodo>Add</button> <input value=thisstatetext onChange=::thishandleUpdate /> </div> }