Created
August 18, 2016 03:31
-
-
Save chengjianhua/1547af2e6150d878268e02ab46c96d73 to your computer and use it in GitHub Desktop.
React.cloneElement usage
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(child, { | |
onSort: this.handleSort.bind(this, field), | |
orderStatus: this.state.orderStatus | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment