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.
useLayoutEffect
1 parent 4767e68 commit 49a920cCopy full SHA for 49a920c
README.md
@@ -13,6 +13,7 @@ React Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) e
13
| ------------- | ------------- |
14
| `ush` | `useState` |
15
| `ueh` | `useEffect` |
16
+| `uleh` | `useLayoutEffect` |
17
| `uch` | `useContext` |
18
| `ucbh` | `useCallback` |
19
| `umh` | `useMemo` |
snippets/snippets.json
@@ -18,6 +18,15 @@
],
"description": "React useEffect() hook"
20
},
21
+ "useLayoutEffect": {
22
+ "prefix": "uleh",
23
+ "body": [
24
+ "useLayoutEffect(() => {",
25
+ "\t$1",
26
+ "}, [${2}]);$0"
27
+ ],
28
+ "description": "React useLayoutEffect() hook"
29
+ },
30
"useContext": {
31
"prefix": "uch",
32
"body": [
0 commit comments