Getting back into snippets
This commit is contained in:
parent
c5eee9e9df
commit
c083c2b083
1 changed files with 5 additions and 0 deletions
5
nvim/nvim.symlink/UltiSnips/typescriptreact.snippets
Normal file
5
nvim/nvim.symlink/UltiSnips/typescriptreact.snippets
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
extends typescript
|
||||||
|
|
||||||
|
snippet useState
|
||||||
|
const [${1:stateValue}, set`!p snip.rv = t[1][:1].upper() + t[1][1:]`] = React.useState<${2:boolean}>(${3:false})$0
|
||||||
|
endsnippet
|
Loading…
Add table
Reference in a new issue