Created
June 15, 2017 23:17
-
-
Save rachsmithcodes/d5b3d5beec06a2b525a71ea08ce5233a to your computer and use it in GitHub Desktop.
New React Component VSCode User Snippet (render method only)
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
"New React Component": { | |
"prefix": "nrc", | |
"body": [ | |
"import React, { Component } from 'react';", | |
"import PropTypes from 'prop-types';", | |
"", | |
"class ${1:name} extends Component {", | |
" render() {$2}", | |
"}", | |
"", | |
"${1:name}.propTypes = {", | |
"};", | |
"", | |
"export default ${1:name};" | |
] | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment