1
1
mirror of https://github.com/enso-org/enso.git synced 2024-12-21 17:41:32 +03:00
enso/app/ide-desktop/.vscode/react.code-snippets

20 lines
435 B
Plaintext
Raw Normal View History

{
"React Component": {
"prefix": ["$c", "component"],
"body": [
"/** Props for a {@link $1}. */",
"export interface $1Props {",
"}",
"",
"/** $2 */",
"export default function $1(props: $1Props) {",
" return <div>$3</div>",
"}"
]
},
"useState": {
"prefix": ["$s", "usestate"],
"body": ["const [$1, set${1/(.*)/${1:/pascalcase}/}] = React.useState($2)"]
}
}