- provides zustand snippet(prefix -zs) with typescript, middleware(persist, devtools, immer)
Snippet | Renders |
---|---|
edc |
export default component |
edcp |
export default component with props |
edf |
export default function |
Note:
persist
,devtools
, andimmer
are from the official libraries, whilehistory
is implemented using Zundo.
To use immer
, you need to download the immer
library, and for history
, you need to download zundo
.
Snippet | Renders |
---|---|
zs |
zustand store |
zsp |
zustand store with persist |
zsd |
zustand store with devtools |
zsi |
zustand store with immer |
zspi |
zustand store with persist, immer |
zsdi |
zustand store with devtools, immer |
zsdpi |
zustand store with devtools, persist, immer |
zsh |
zustand store with history |
zsih |
zustand store with immer, history |
zspih |
zustand store with persist, immer, history |
go to Market Place.
- Use lowercase letters only | 소문자만을 사용한다.
- Combine the first letters of the word. | 단어의 첫문자들을 조합한다. export default component => edc
{
"export default component": {
"prefix": "edc",
"body": [
"const ${1:${TM_FILENAME_BASE}} = () => {",
" return <>$2</>;",
"};",
"",
"export default ${1:${TM_FILENAME_BASE}};"
],
"description": "export default component"
}
}