Skip to content

Instantly share code, notes, and snippets.

@arqex
Created January 3, 2016 12:42
Show Gist options
  • Save arqex/194a1ba48dfabdb274d3 to your computer and use it in GitHub Desktop.
Save arqex/194a1ba48dfabdb274d3 to your computer and use it in GitHub Desktop.
var VideoWrapper = React.createClass({
render: function() {
return (
<Video ref="video" src="path/to/my/video.mp4" />
);
},
componentDidMount: function() {
// I will show the rendered Video instance
// in the console
console.log( this.refs.video );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment