Skip to content

Instantly share code, notes, and snippets.

@ReidWilliams

ReidWilliams/container.js

Last active Nov 21, 2018
Embed
What would you like to do?
React Container Pattern Template
import React from 'react'
const createContainer = (ComposedComponent) => {
class Container extends React.Component {
render() {
const componentProps = {
...this.props
}
return (
<ComposedComponent {...componentProps} />
)
}
}
return Container
}
export default createContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.