Skip to content

Instantly share code, notes, and snippets.

@JiDai
Created November 21, 2017 22:52
Show Gist options
  • Save JiDai/e888f6cbaffb74e22e6a4abb67c7a70d to your computer and use it in GitHub Desktop.
Save JiDai/e888f6cbaffb74e22e6a4abb67c7a70d to your computer and use it in GitHub Desktop.
React Class component (JetBrains)
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