redux-mappers
v1.0.7
Published
Redux decorators to map from state to props or map actions to props
Downloads
3
Maintainers
Readme
redux-mappers
A simple library provides decorators to map state to props and map dispatch actions to props.
Usage
@mapStateToProps(state => ({
id: state.data.id // whatever you want to map from state to props
})
@mapDispatchToProps( { dataAction: someAction } )
export class Container extends React.Component {
...
}
Licence
MIT