Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions snippets/snippets-ts.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@
],
"description": "Create ReactJS Styled Components file"
},

"componentFunctionalTypescript": {
"prefix": "rfc",
"body": [
"import React from 'react';",
"",
"// import { Container } from './styles';",
"",
"const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}: React.FC = () => {",
"export const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}: React.FC = () => {",
" return <div />;",
"}",
"",
"export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};"
""
],
"description": "Create ReactJS Functional Component Typescript"
}
}
}
}
10 changes: 4 additions & 6 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@
],
"description": "Create ReactJS Styled Components file"
},

"componentFunctionalTypescript": {
"prefix": "rfc",
"body": [
"import React from 'react';",
"",
"// import { Container } from './styles';",
"",
"function ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}() {",
"export function ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}() {",
" return <div />;",
"}",
"",
"export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};"
""
],
"description": "Create ReactJS Functional Component Typescript"
}
}
}
}