Skip to content

Instantly share code, notes, and snippets.

@visortelle
Last active March 11, 2022 17:21
Show Gist options
  • Save visortelle/271627130d7dfcfa44e1f71fc5b6dfaf to your computer and use it in GitHub Desktop.
Save visortelle/271627130d7dfcfa44e1f71fc5b6dfaf to your computer and use it in GitHub Desktop.
VSCode React snippets
{
"New component": {
"prefix": "rfc",
"body": [
"import React from 'react';\nimport s from './$1.module.css'\n\nexport type $1Props = {};\n\nconst $1: React.FC<$1Props> = (props) => {\n return (\n <div className={s.$1}>$0</div>\n );\n}\n\nexport default $1;"
],
"description": "Create new component"
}
}
@visortelle
Copy link
Author

How it works:

Screen.Recording.2022-03-11.at.6.17.20.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment