Last active
April 19, 2017 03:59
-
-
Save belohlavek/36e473a2c558f31d71353179f47e078a to your computer and use it in GitHub Desktop.
Typescript react snippets 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
{ | |
"React Pure Component": { | |
"prefix": "reclass", | |
"body": [ | |
"import * as React from 'react';\n", | |
"export interface IProps {\n", | |
"}\n", | |
"export interface IState {\n", | |
"}\n", | |
"class $1 extends React.PureComponent<IProps, IState> {\n", | |
" render() {", | |
" const {} = this.props;", | |
" return (", | |
" null", | |
" );", | |
" }\n", | |
"}\n", | |
"export default $1;" | |
], | |
"description": "Creates a react pure class component" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment