Created
January 21, 2021 03:35
-
-
Save ChiragRupani/fcf04129daa71af291f0cedfe16862cc to your computer and use it in GitHub Desktop.
React Code snippet for class component
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
Show hidden characters
"reactClassComponent": { | |
"prefix": "RC", | |
"scope": "typescriptreact", | |
"body": "import * as React from 'react';\n\nexport default class ${1:${TM_FILENAME_BASE}} extends React.Component<{}, {}> {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n $0 \n </div>\n );\n }\n}", | |
"description": "Creates a React component class" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment