Skip to content

Instantly share code, notes, and snippets.

@lastrafda
Last active April 28, 2020 22:57
Show Gist options
  • Save lastrafda/98aa902132905dcf1704167feb3ae30a to your computer and use it in GitHub Desktop.
Save lastrafda/98aa902132905dcf1704167feb3ae30a to your computer and use it in GitHub Desktop.
My snippets
{
"Print to console": {
"prefix": "clog",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"Create a new react component": {
"prefix": "nc",
"body": [
"import React from 'react'",
"\n",
"const $TM_FILENAME_BASE = ($1) => {",
" return (",
" <div>",
" </div>",
" )",
"}",
"\n",
"export default $TM_FILENAME_BASE"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment