File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ React Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) e
1616| ` udvh ` | ` useDeferredValue ` |
1717| ` udbvh ` | ` useDebugValue ` |
1818| ` uidh ` | ` useId ` |
19+ | ` usesh ` | ` useSyncExternalStore ` |
1920| ` ueh ` | ` useEffect ` |
2021| ` uleh ` | ` useLayoutEffect ` |
2122| ` uieh ` | ` useInsertionEffect ` |
Original file line number Diff line number Diff line change 3434 ],
3535 "description" : " React useId() hook"
3636 },
37+ "useSyncExternalStore" : {
38+ "prefix" : " usesh" ,
39+ "body" : [
40+ " const ${1:snapshot} = useSyncExternalStore(${2:subscribe}, ${3:getSnapshot}, ${4:getServerSnapshot});$0"
41+ ],
42+ "description" : " React useSyncExternalStore() hook"
43+ },
3744 "useEffect" : {
3845 "prefix" : " ueh" ,
3946 "body" : [
You can’t perform that action at this time.
0 commit comments