Skip to content

Instantly share code, notes, and snippets.

@yaditya
Last active August 29, 2015 14:20
Show Gist options
  • Save yaditya/c77d725f660da308c766 to your computer and use it in GitHub Desktop.
Save yaditya/c77d725f660da308c766 to your computer and use it in GitHub Desktop.
Webstorm React Element File Template
#set($componentName = $NAME.substring(0,1).toUpperCase()+$NAME.substring(1))
import React, {Component} from 'react';
class ${componentName} extends Component {
constructor(props, context) {
super(props, context);
}
render() {
return (
);
}
}
${componentName}.propTypes = {
};
export default ${componentName};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment