Skip to content

Instantly share code, notes, and snippets.

@thekip
Last active July 30, 2017 08:05
Show Gist options
  • Save thekip/9fbc78d198feb71a9be7687d8ff78a8d to your computer and use it in GitHub Desktop.
Save thekip/9fbc78d198feb71a9be7687d8ff78a8d to your computer and use it in GitHub Desktop.
Webstorm React Component Template
#set($cmpName = "")
#foreach($str in $NAME.split("-"))
#set($str = $str.substring(0,1).toUpperCase()+$str.substring(1))
#set($cmpName = $cmpName + $str)
#end
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export class ${cmpName} extends Component {
static propTypes = {
};
render() {
return (
<div></div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment