Created
September 21, 2016 07:41
-
-
Save jim-at-jibba/49fc307e1e7676637f95b37864b2eb2a to your computer and use it in GitHub Desktop.
React Stateless Component Webstorm/PHPStorm File Template
This file contains hidden or 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
import React, { PropTypes } from 'react'; | |
const $NAME = (props) => { | |
return ( | |
$END | |
); | |
} | |
$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
Add space in this line:
$NAME .propTypes = { // myProp: PropTypes.string.isRequired };
Because webstorm ignores the filename when the $NAME variable is followed by same characters without spaces