Last active
June 4, 2020 06:54
-
-
Save avilde/203ad8253c4897b7fe54a276cc6d868f to your computer and use it in GitHub Desktop.
New React Typescript Functional Component Template
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
{ | |
"New React FC": { | |
"prefix": "nfc", | |
"body": [ | |
"import React from 'react';", | |
"import classes from './${1}.module.scss';", | |
"", | |
"interface ${1}Props {}", | |
"", | |
"const ${1} = (props: ${1}Props) => {", | |
"\t return <div className={classes.${1}}></div>;", | |
"}", | |
"", | |
"export default ${1};" | |
], | |
"description": "Create new React functional component with Typescript interface" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment