Skip to content

Instantly share code, notes, and snippets.

@arqex
Created January 3, 2016 12:00
Show Gist options
  • Save arqex/067b275aa6ecce0c952c to your computer and use it in GitHub Desktop.
Save arqex/067b275aa6ecce0c952c to your computer and use it in GitHub Desktop.
var VideoWrapper = React.createClass({
getInitialState: function(){
return {play: false};
},
render: function() {
return (
<Video src="path/to/my/video.mp4"
play={ this.state.play }
onButtonClick={ () => this.setState({play: !this.state.play}) } />
);
}
});
@przeor
Copy link

przeor commented Aug 29, 2016

Hi I see that you use React, so I am sure that you will find interesting the https://reactjs.co - this is the free online convention and tutorial book for React.JS Developers. React is not only the View (in MVC) anymore. ReactJS For Dummies: Why & How to Learn React Redux, the Right Way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment