feat(vscode): added new snippet for creating React function components
This commit is contained in:
parent
21f937a9cc
commit
6acd758342
19
.vscode/snippet.code-snippets
vendored
Normal file
19
.vscode/snippet.code-snippets
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"Function component": {
|
||||
"prefix": "rnfc",
|
||||
"body": [
|
||||
"import { FC } from 'react'",
|
||||
"import styled from 'styled-components'",
|
||||
"",
|
||||
"const $1: FC = () => {",
|
||||
" return <Container></Container>",
|
||||
"}",
|
||||
"",
|
||||
"const Container = styled.div``",
|
||||
"",
|
||||
"export default $1",
|
||||
""
|
||||
],
|
||||
"description": "Function component"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user