Created
July 2, 2017 10:30
-
-
Save mutuadavid93/1a80a290f883f55402659ff4d3555dfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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