Created
June 27, 2019 10:44
-
-
Save ramsunvtech/309bc5381bb20e8f529a810b20935d84 to your computer and use it in GitHub Desktop.
Pass data to Props.Children
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.cloneElement(props.children, { props1: propsValue }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment