Releases: NullVoxPopuli/react-state-helpers
Releases · NullVoxPopuli/react-state-helpers
Mass setting of wrapping state.
When using the state wrapper, you can now set the 'initial' state:
@wrapStateHelpers
export default class Example extends Component {
componentDidMount() {
this.props.setWrappingState({
userName: ''
});
},
componentDidReceiveProps(nextProps) {
this.props.setWrappingState({
// if you are manually passing render props in and want that to override
// the internally managed state at nextProps.values.userName
userName: nextProps.userName
});
}
});1.6.2
sumbit
...
ES5 trash
Now with proper default export.
OMG package.json#files
Well... That was dumb.
New Feature:
- HOC Component, default export
Lots of Cleanup / File splitting
v1.3.0
Added withValue.
See README.md for usage with redux actions.