GitHub

A great library for handling #redux state like #reactjs component state:  via @github

  • Redux state can be scoped to the components
  • Basic Redux state access and updating should be simple as it is with the component local state
  • getInitialState(): Object Create default values for the scoped state.
  • mapState(state: Object, ownProps: Object): Object Modify the state before passing it to the wrapped component.
  • If scope is passed as a prop from the parent component it will override the value defined unless it’s a function.

lean-redux – Redux state like local component state

@aptly_crm: A great library for handling #redux state like #reactjs component state: via @github

Redux state like local component state.

No need to create action types, reducers or even action creators

Nearly the same API with React Components!

Component cannot interfere with parts of the state that do not belong to it

Time travel debuggers, Redux Form etc. work well with Lean Redux

You can drop this into your existing project and start using it only for parts of the app

Handlers are automatically bound to avoid some pure render anti-patterns

import {connectLean} from “lean-redux”; var Counter = ({count, handleClick}) => (

{count}

GitHub