|
| 1 | +First of all, you need to understand that we don't provide a snippet for importing your package like any other VSCode snippets extention. |
| 2 | + |
| 3 | +`imr` → `import React from 'react'` |
| 4 | + |
| 5 | +👆 We don't do it here. |
| 6 | + |
| 7 | +We encourage you to use the built-in auto import from VSCode. |
| 8 | +Use `Ctrl`+`Space` on your variable and a popup will appear. |
| 9 | + |
| 10 | +<img src="./images/auto-import.gif" alt="VSCode built-in auto import" width="100%" /> |
| 11 | + |
| 12 | +If auto import doesn't appear, open command palette (`Ctrl`+`Shift`+`P`) and select restart TS server. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +Okay, here we go... |
| 19 | + |
| 20 | +# All Available Snippets |
| 21 | + |
| 22 | +## Vanilla JavaScript |
| 23 | + |
| 24 | +### Console |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +### setTimeout & setInterval |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +### Arrow Function |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +### JSON.stringify & JSON.parse |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +### typeof |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +## React |
| 45 | + |
| 46 | +### Component (Regular Function) |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +### Component (Arrow Function) |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +### React Hooks |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +### JSX Wrapper |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +### React Lazy |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +### React dangerouslySetInnerHTML |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +## Next.js |
| 71 | + |
| 72 | +### Next.js getServerSideProps, getStaticProps, getStaticPaths |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +### Next.js Custom Document |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | +### Next.js Router |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +### Next.js Dynamic Import |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +## React Native |
| 89 | + |
| 90 | +### React Native Component |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +## React Router |
| 95 | + |
| 96 | +### Create Router |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | +### React Router Hooks |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | +## React Query |
| 105 | + |
| 106 | +### React Query |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | +## SWR |
| 111 | + |
| 112 | +### SWR Hook |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +## Redux |
| 117 | + |
| 118 | +### Redux Store |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | +### Redux Slice |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | +### Redux Hooks |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | +## Testing |
| 131 | + |
| 132 | +### Test Block |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | +### Before & After |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | +## React Hook Form |
| 141 | + |
| 142 | +### React Hook Form |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | +## Zustand |
| 147 | + |
| 148 | +### Zustand Config |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | +### Zustand Hooks |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | +## Emotion CSS |
| 157 | + |
| 158 | +### Emotion CSS in React Component |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | +## TypeScript |
| 163 | + |
| 164 | +### Generate Types/Interface from Clipboard |
| 165 | + |
| 166 | + |
0 commit comments