Skip to content

Instantly share code, notes, and snippets.

@phraniiac
Created May 5, 2016 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phraniiac/20b5cf87ae48b5cee7508508ebe5961e to your computer and use it in GitHub Desktop.
Save phraniiac/20b5cf87ae48b5cee7508508ebe5961e to your computer and use it in GitHub Desktop.
var MyComponent = React.createClass({
/* all the functionalities to be defined. */
someProperty = false;
});
// Treat it like a standard html tag now.
var myElement = <MyComponent someProperty={true} />
ReactDOM.render(myElement, document.getElementById('example'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment