Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { compose, mapProps } from 'recompose';
- import someAction from './someAction';
- export const Component = ({ handleOnClick }) => (
- <button onClick={handleOnClick}>Ayyy lmao</button>
- );
- const enhance = compose(
- mapProps(props => (
- {
- handleOnClick: someAction,
- ...props,
- }
- )),
- )
- export default enhance(Component);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement