Created
November 11, 2016 09:18
-
-
Save mauricedb/9e28e0ebcdfb8775cc74060a65681189 to your computer and use it in GitHub Desktop.
Template for a new React component
This file contains hidden or 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
import React, { Component, PropTypes } from 'react'; | |
class NewComponent extends Component { | |
render() { | |
return ( | |
<div> | |
{this.constructor.name} | |
</div> | |
); | |
} | |
} | |
NewComponent.propTypes = { | |
}; | |
export default NewComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment