Last active
May 1, 2023 13:52
-
-
Save fewkz/7e55030bf9c7e17c76e00baf2c0283bb to your computer and use it in GitHub Desktop.
VSCode snippets for froact
This file contains 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
Show hidden characters
{ | |
"Froact Component": { | |
"scope": "lua,luau", | |
"prefix": "component_froact", | |
"body": [ | |
"type $1Props = {}", | |
"local $1 = froact.c({ name = \"$1\" }, function(props: $1Props, hooks)", | |
"\t$0", | |
"end)" | |
] | |
}, | |
"Froact Function Component": { | |
"scope": "lua,luau", | |
"prefix": "component_function_froact", | |
"body": [ | |
"local function $1(props: {})", | |
"\t$0", | |
"end" | |
], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment