Last active
August 11, 2020 12:06
-
-
Save omarciovsena/ea8c67a9ff89ddedf3b84a8275111d34 to your computer and use it in GitHub Desktop.
snippets vscode javascript.json
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
{ | |
"Print to console": { | |
"prefix": "clog", | |
"body": ["console.log('$1');", "$2"], | |
"description": "Log output to console" | |
}, | |
"Add proptypes import": { | |
"prefix": "iproptypes", | |
"body": ["import PropTypes from 'prop-types'"], | |
"description": "Add proptypes import" | |
}, | |
"Add proptypes": { | |
"prefix": "proptypes", | |
"body": ["$1.propTypes = {\n$2: PropTypes.$3\n}"], | |
"description": "Add proptypes" | |
}, | |
"Add constructor": { | |
"prefix": "constructor", | |
"body": ["constructor(props) {\n\tsuper(props);\n\t$1\n}"], | |
"description": "Add constructor react" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment