Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snippet for vscode to create a functional component
"Make React Component": {
"prefix": "makeReactComponent",
"body": ["import React from 'react'; \n\nfunction ${1:$TM_FILENAME_BASE}(props) {\n\treturn (\t\n\t\t<div>$0</div>\n\t)\n} \nexport default ${1};"],
"description": "Make a react functional component"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment