File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ React Hooks Snippets is a [Visual Studio Code](https://code.visualstudio.com/) e
1818| ` umh ` | ` useMemo ` |
1919| ` irh ` | ` import React ` (and common hooks) |
2020| ` urh ` | ` useRef ` |
21+ | ` uihh ` | ` useImperativeHandle ` |
2122| ` urdh ` | ` useReducer ` |
2223| ` irrh ` | import react redux hooks |
2324| ` uss ` | ` useSelector ` |
Original file line number Diff line number Diff line change 5757 ],
5858 "description" : " React useRef() hook"
5959 },
60+ "useImperativeHandle" : {
61+ "prefix" : " uihh" ,
62+ "body" : [
63+ " useImperativeHandle(ref, () => {" ,
64+ " \t return {" ,
65+ " \t\t $1" ,
66+ " \t }" ,
67+ " }, [$2]);$0"
68+ ],
69+ "description" : " React useImperativeHandle() hook"
70+ },
6071 "useReducer" : {
6172 "prefix" : " urdh" ,
6273 "body" : [
You can’t perform that action at this time.
0 commit comments