Skip to content

Commit 5e7210d

Browse files
41y08hDamian Sznajder
authored and
Damian Sznajder
committed
Add snippet for react custom hook
1 parent 29f639c commit 5e7210d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

snippets/snippets.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -1850,5 +1850,17 @@
18501850
"}",
18511851
""
18521852
]
1853-
}
1853+
},
1854+
"reactCustomHook": {
1855+
"prefix": "rch",
1856+
"body": [
1857+
"import {$1} from 'react'",
1858+
"",
1859+
"export default function ${2:${TM_FILENAME_BASE}}($3) => {",
1860+
"\t$4",
1861+
"}",
1862+
""
1863+
],
1864+
"description": "Creates a React Custom Hook with ES7 module system"
1865+
}
18541866
}

0 commit comments

Comments
 (0)