Skip to content

Commit 5a86a65

Browse files
committed
Initial import
0 parents  commit 5a86a65

11 files changed

+6179
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
.idea
4+
src/**/*.js

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## redux-mappers
2+
A simple library provides decorators to map state to props and map dispatch actions to props.
3+
4+
### Usage
5+
```javascript
6+
@mapStateToProps(state => ({
7+
id: state.data.id // whatever you want to map from state to props
8+
})
9+
@mapDispatchToProps( { dataAction: someAction } )
10+
export class Container extends React.Component {
11+
...
12+
}
13+
```
14+
15+
### Licence
16+
MIT

0 commit comments

Comments
 (0)