Created
March 7, 2020 08:50
-
-
Save DennyScott/3e5b41dd080633276fba67e1e47faff0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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