1
Pass props to parent React
Mehran Dehghanian edited this page 4 years ago
Pass props to parent component in React.js
var Child = React.createClass({
render: function () {
return <button onClick={this.props.onClick}>{this.props.text}</button>;
},
});