Last active
July 30, 2017 08:05
-
-
Save thekip/9fbc78d198feb71a9be7687d8ff78a8d to your computer and use it in GitHub Desktop.
Webstorm React Component Template
This file contains 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
#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