Skip to content

Easy to use decorators to map state and dispatch actions to props

License

Notifications You must be signed in to change notification settings

nodify-at/redux-mappers

Repository files navigation

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

About

Easy to use decorators to map state and dispatch actions to props

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published