Skip to content

Instantly share code, notes, and snippets.

@DennyScott
Created March 7, 2020 08:50
Show Gist options
  • Save DennyScott/3e5b41dd080633276fba67e1e47faff0 to your computer and use it in GitHub Desktop.
Save DennyScott/3e5b41dd080633276fba67e1e47faff0 to your computer and use it in GitHub Desktop.
function Parent() {
return(<ChildContainer name="Denny" />);
}
function Child({name}) {
return(<div>{name}</div>);
}
const mapStateToProps = state => ({...});
const mapDispatchToProps = (dispatch, ownProps) => ({...});
const childContainer = connect(mapStateToProps, mapDispatchToProps)(Child)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment