Last active
June 14, 2019 10:16
-
-
Save nikonov91-dev/e89cd0951a686df540aa88380352d7e6 to your computer and use it in GitHub Desktop.
js react gist snippet for vscode
This file contains hidden or 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
{ | |
"createStatelessComponent": { | |
"prefix": "import-stateless", | |
"body": [ | |
"import React from 'react';", | |
"", | |
"export default ({}) => (", | |
" <$1>", | |
" ", | |
" </$2>", | |
");" | |
], | |
"description": "import React and export stateless component" | |
}, | |
"importModule": { | |
"prefix": "importFrom", | |
"body": ["import $2 from '$1';"], | |
"description": "import statement without brackets" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment