From 1eccd6827b6996256c23e58b2351f1ee7ac67f8c Mon Sep 17 00:00:00 2001 From: Keenan Homsi Date: Wed, 15 Sep 2021 21:07:45 -0400 Subject: [PATCH 1/2] added imrrd snippet to README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b313a0b..8d81605 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ React 17 is currently supported by `_` prefix. | ----------: | ----------------------------------------------------------------------------------- | | `imr→` | `import React from 'react'` | | `imrd→` | `import ReactDOM from 'react-dom'` | +| `imrrd→` | `import React from 'react' & import ReactDOM from 'react-dom'` | | `imrc→` | `import React, { Component } from 'react'` | | `imrcp→` | `import React, { Component } from 'react' & import PropTypes from 'prop-types'` | | `imrpc→` | `import React, { PureComponent } from 'react'` | @@ -216,7 +217,7 @@ React 17 is currently supported by `_` prefix. ### Console | Prefix | Method | -|--------|--------------------------------------------------------------| +| ------ | ------------------------------------------------------------ | | `clg→` | `console.log(object)` | | `clo→` | `` console.log(`object`, object) `` | | `clj→` | `` console.log(`object`, JSON.stringify(object, null, 2)) `` | From c845b819e6e3c804adb824ff7f6f13d37f39d425 Mon Sep 17 00:00:00 2001 From: Keenan Homsi Date: Wed, 15 Sep 2021 21:11:54 -0400 Subject: [PATCH 2/2] added imrrd snippet in snippets.json --- snippets/snippets.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snippets/snippets.json b/snippets/snippets.json index 9a660d9..514efc1 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -200,6 +200,14 @@ "prefix": "imr", "body": ["import React from 'react'", ""] }, + "import React & ReactDOM": { + "prefix": "imrrd", + "body": [ + "import React from 'react'", + "import ReactDOM from 'react-dom'", + "" + ] + }, "import ReactDOM": { "prefix": "imrd", "body": ["import ReactDOM from 'react-dom'", ""]