Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Imagine what would it be if connect, withRouter, injectIntl were child as function
export default (
<Connect mapStateToProps={mapStateToProps} mapPropsToActions={actions}>
(props) => (
(router) => (
{(intl => <SomeComonent intl={intl} router={router} {...props} />}
<Connect />
// VS HOCs
export default compose(
connect(mapStateToProps, actions),
// Every pattern has use cases :P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment