Created
September 12, 2019 02:16
-
-
Save hsipeng/4fdccb42bb2def3a0872fa6b84b35424 to your computer and use it in GitHub Desktop.
react props actions and functions
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
React.Children.map(this.props.children, child => { | |
return React.cloneElement(child, { | |
params: () => {} | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment