Last active
October 16, 2018 15:08
-
-
Save fes300/f379b77ab455092fcccfae69d6218de0 to your computer and use it in GitHub Desktop.
snippet for VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Create basic React class": { | |
"prefix": "rcc", | |
"body": [ | |
"import * as React from 'react'", | |
"", | |
"type Props = {}", | |
"", | |
"type State = {}", | |
"", | |
"class ${1:${TM_FILENAME_BASE}} extends React.Component<Props, State> {", | |
"\trender() {", | |
"\t\treturn (", | |
"\t\t\t${2:<>}", | |
"\t\t)", | |
"\t}", | |
"}", | |
"", | |
"export default ${1:${TM_FILENAME_BASE}}" | |
], | |
"description": "Creates a basic React Class with the name of the current file." | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment