Skip to content

Instantly share code, notes, and snippets.

@omarciovsena
Last active August 11, 2020 12:06
Show Gist options
  • Save omarciovsena/ea8c67a9ff89ddedf3b84a8275111d34 to your computer and use it in GitHub Desktop.
Save omarciovsena/ea8c67a9ff89ddedf3b84a8275111d34 to your computer and use it in GitHub Desktop.
snippets vscode javascript.json
{
"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