Skip to content

Instantly share code, notes, and snippets.

@mutuadavid93
Created July 2, 2017 10:30
Show Gist options
  • Save mutuadavid93/1a80a290f883f55402659ff4d3555dfa to your computer and use it in GitHub Desktop.
Save mutuadavid93/1a80a290f883f55402659ff4d3555dfa to your computer and use it in GitHub Desktop.
// How to Create a React Sub Component
a. Create File
b. Import React Library
c. Use createClass() to Define the Component
d. Export Component
var React = require('react'),
createClass = require('create-react-class');
var ASubComponent = createClass({
render : function () {
return(
HTML Like JSX Here
) //return
} //render
}); // AddApointment
module.exports = ASubComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment