you donβt have an element reference in the first render because it is not set.
you can do something like this to make it work:
var Todos = React.createClass({ componentDidMount: function() { this.refs.hello.animate(); }, render: function() { return ( <div> <Todo ref='hello' /> </div> ); } });
componentDidMount is called when the component is already displayed (for the first time). here you will have a link to the item
source share