We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useId
1 parent 97771e7 commit 05672d1Copy full SHA for 05672d1
README.md
@@ -15,6 +15,7 @@ React Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) e
15
| `uth` | `useTransitionHook` |
16
| `udvh` | `useDeferredValue` |
17
| `udbvh` | `useDebugValue` |
18
+| `uidh` | `useId` |
19
| `ueh` | `useEffect` |
20
| `uleh` | `useLayoutEffect` |
21
| `uieh` | `useInsertionEffect` |
snippets/snippets.json
@@ -27,6 +27,13 @@
27
],
28
"description": "React useDebugValue() hook"
29
},
30
+ "useId": {
31
+ "prefix": "uidh",
32
+ "body": [
33
+ "const ${1:id} = useId();$0"
34
+ ],
35
+ "description": "React useId() hook"
36
+ },
37
"useEffect": {
38
"prefix": "ueh",
39
"body": [
0 commit comments