Created
November 21, 2017 22:52
-
-
Save JiDai/e888f6cbaffb74e22e6a4abb67c7a70d to your computer and use it in GitHub Desktop.
React Class component (JetBrains)
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 } from 'react'; | |
import PropTypes from 'prop-types'; | |
/** | |
* ${NAME} Component. | |
*/ | |
export default class ${NAME} extends Component { | |
/** | |
* Creates an instance of ${NAME}. | |
* @param {Object} props Component props | |
*/ | |
constructor(props) { | |
super(props); | |
} | |
/** | |
* React lifecycle. | |
*/ | |
render() { | |
return ( | |
); | |
} | |
} | |
${NAME}.propTypes = { | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment