Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Recompose
- A recompose stack is something like this:
- import * as R from "recompose";
- const enhance = R.compose(
- R.withProps({text: "Click Me"}),
- R.withStateHandler({ active: false }, {
- onClick: ({ active }) => event => ({
- active: !active,
- }),
- }),
- connect(mapStateToProps, mapDispatchToProps) // react-redux
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement