diff --git a/.config/Code - OSS/User/snippets/typescriptreact.json b/.config/Code - OSS/User/snippets/typescriptreact.json new file mode 100644 index 0000000..3957733 --- /dev/null +++ b/.config/Code - OSS/User/snippets/typescriptreact.json @@ -0,0 +1,24 @@ +{ + "Component": { + "prefix": "comp", + "description": "Default react component", + "body": [ + "import * as React from \"react\";", + "", + "class $1 extends React.Component {", + "\tconstructor(props) {", + "\t\tsuper(props);", + "\t}", + "", + "\trender(): JSX.Element {", + "\t\treturn
", + "\t\t\tMy $1", + "\t\t
;", + "\t}", + "", + "}", + "", + "export default $1;" + ] + } +} \ No newline at end of file