diff --git a/README.md b/README.md index 6017a7b..f6299c5 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ Below is a list of all available snippets and the triggers of each one. The ** | `rpc→` | class pure component skeleton with prop types after the class | | `rsc→` | stateless component skeleton | | `rscp→` | stateless component with prop types skeleton | +| `rscm→` | memoize stateless component skeleton | +| `rscpm→` | memoize stateless component with prop types skeleton | | `rsf→` | stateless named function skeleton | | `rsfp→` | stateless named function with prop types skeleton | | `rsi→` | stateless component with prop types and implicit return | diff --git a/snippets/snippets.json b/snippets/snippets.json index 3e2ca39..bde9e3d 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -50,14 +50,14 @@ "description": "Creates a stateless React component with PropTypes and ES6 module system" }, "reactMemo": { - "prefix": "rm", + "prefix": "rscm", "body": "import React, { memo } from 'react';\n\nconst ${1:${TM_FILENAME_BASE}} = memo(() => {\n\treturn (\n\t\t