npm

redux-mappers
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

Package Sidebar

Install

npm i redux-mappers

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

6.71 kB

Total Files

15

Last publish

Collaborators

  • nodify_at