Skip to content

Instantly share code, notes, and snippets.

@belohlavek
Last active April 19, 2017 03:59
Show Gist options
  • Save belohlavek/36e473a2c558f31d71353179f47e078a to your computer and use it in GitHub Desktop.
Save belohlavek/36e473a2c558f31d71353179f47e078a to your computer and use it in GitHub Desktop.
Typescript react snippets vscode
{
"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