Last active
August 21, 2023 23:56
-
-
Save lucis/9ac9756ce7df18033d53e5c03ad8a62d to your computer and use it in GitHub Desktop.
Preact Code Snippets for VSCode (Ctrl + Shift + P -> "Configure User Snippets" -> "New Global Snippets" -> Cola esse arquivo)
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
{ | |
"Preact Component": { | |
"prefix": "pc", | |
"body": [ | |
"export interface Props { $2: $3 }", | |
"", | |
"export default function $1({ $2 }: Props) {", | |
" return (", | |
" ${0}", | |
" )", | |
"};" | |
] | |
}, | |
"Preact Component Without Props": { | |
"prefix": "pcwp", | |
"body": [ | |
"export default function $1() {", | |
" return (", | |
" ${0}", | |
" )", | |
"};" | |
] | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment