Skip to content

Instantly share code, notes, and snippets.

@betiol
Created August 20, 2016 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betiol/245a0b3748dc8df919689f9dff3c111e to your computer and use it in GitHub Desktop.
Save betiol/245a0b3748dc8df919689f9dff3c111e to your computer and use it in GitHub Desktop.
React Class Component
import React, {PropTypes} from 'react';
class $NAME extends React.Component {
render() {
return (
);
}
}
$NAME .propTypes = {
myProp: PropTypes.string.isRequired
};
export default $NAME;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment