Skip to content

Instantly share code, notes, and snippets.

@median-man
Last active November 8, 2019 14:45
Show Gist options
  • Save median-man/dc13ba4ac256c3c622500a026ef0d20a to your computer and use it in GitHub Desktop.
Save median-man/dc13ba4ac256c3c622500a026ef0d20a to your computer and use it in GitHub Desktop.
VSCode User Snippets
{
"react component": {
"description": "A functional react component file template.",
"prefix": ["re", "rc", "react-comp", "comp"],
"body": [
"import React from \"react\"",
"",
"const ${1:ComponentName} = () => <div>${1:ComponentName} Component</div>",
"",
"export default ${1:ComponentName}",
""
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment