I fool around with Reactjs and try launch this code
var Kaka = React.createClass({render() { return <div> Hell o forld </div> }})
var Application = React.createClass({
handle() {console.log("took took");},
render() {return <div><Kaka onClick = {this.handle} /></div>}
})
React.render(<Application />, document.getElementById('app'));
Example on Codepen I disire that while click on component Kaka starting work function "handle" and this return consol.log. But it doesn't work. My question is that, may an inner component use function which is function of external component? On my example an external component is Application, an inner component is Kaka, and a function which i want launch is handle.
Please, tell me why my snippet cod don't work. I think, i do not understand how a components interact between ourself. Sorry for my English.