diff --git a/snippets/snippets.json b/snippets/snippets.json index 366092e..eb08707 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -1850,5 +1850,17 @@ "}", "" ] - } + }, + "reactCustomHook": { + "prefix": "rch", + "body": [ + "import {$1} from 'react'", + "", + "export default function ${2:${TM_FILENAME_BASE}}($3) {", + "\t$4", + "}", + "" + ], + "description": "Creates a React Custom Hook with ES7 module system" + } }