I want to call a function of a child component.
Is there a possibility to get refs from this.props.children in React.
var ComponentSection = React.createClas
You are trying to set a You could also refactor your code so that only Here is a working JSFiddlle.ref
on a
needs to know about the
component, and render it in it's render function.var ComponentSection = React.createClass({
componentDidMount: function() {
this.refs.inner.resize();
},
render: function() {
return (