We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm having to use lifecycles often. I think it might be a good idea to implement something like https://github.com/reactions/component.
const increment = amount => state => ({ count: state.count + amount }); const CounterContainer = props => ( <Container initialState={{ count: 0 }} onMount={({ setState }) => setState(increment(10))} // componentDidMount onUpdate={({ setState }) => setState(increment(10))} // setState call onUnmount={({ setState }) => setState(increment(10))} // componentWillUnmount actions={{ increment }} {...props} /> );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm having to use lifecycles often. I think it might be a good idea to implement something like https://github.com/reactions/component.
The text was updated successfully, but these errors were encountered: