Skip to content

Instantly share code, notes, and snippets.

@xfsnowind
Created October 23, 2015 22:36
Show Gist options
  • Select an option

  • Save xfsnowind/9ac583fa815adcb05190 to your computer and use it in GitHub Desktop.

Select an option

Save xfsnowind/9ac583fa815adcb05190 to your computer and use it in GitHub Desktop.
preparation codes on blog "React -- Communication between components" on 2014/06/24
// For Parent.js
var Parent = React.createClass({
render: function () {
return (
<div><input onchange="" type="text" value="Parent"></input><child></child></div>
);
}
});
// For Child.js
var Child = React.createClass({
render: function () {
return (
<div. onclick="" type="button" value="Child"></div.>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment