mirror of
https://github.com/enso-org/enso.git
synced 2024-12-21 17:41:32 +03:00
20 lines
435 B
Plaintext
20 lines
435 B
Plaintext
|
{
|
||
|
"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)"]
|
||
|
}
|
||
|
}
|