Skip to content

Removed import React from "react" from some snippets. #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 15 additions & 19 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
"reactClassCompoment": {
"prefix": "rcc",
"body": [
"import React, { Component } from 'react'",
"import { Component } from 'react'",
"",
"export default class ${1:${TM_FILENAME_BASE}} extends Component {",
"\trender() {",
Expand All @@ -306,7 +306,7 @@
"reactClassExportComponent": {
"prefix": "rce",
"body": [
"import React, { Component } from 'react'",
"import { Component } from 'react'",
"",
"export class ${1:${TM_FILENAME_BASE}} extends Component {",
"\trender() {",
Expand All @@ -326,7 +326,7 @@
"reactFunctionalExportComponent": {
"prefix": "rfce",
"body": [
"import React from 'react'",
"",
"",
"function ${1:${TM_FILENAME_BASE}}() {",
"\treturn (",
Expand All @@ -344,7 +344,7 @@
"reactFunctionalComponent": {
"prefix": "rfc",
"body": [
"import React from 'react'",
"",
"",
"export default function ${1:${TM_FILENAME_BASE}}() {",
"\treturn (",
Expand All @@ -360,7 +360,6 @@
"reactFunctionalComponentWithPropTypes": {
"prefix": "rfcp",
"body": [
"import React from 'react'",
"import PropTypes from 'prop-types'",
"",
"function ${1:${TM_FILENAME_BASE}}(props) {",
Expand All @@ -384,7 +383,7 @@
"reactArrowFunctionExportComponent": {
"prefix": "rafce",
"body": [
"import React from 'react'",
"",
"",
"const ${1:${TM_FILENAME_BASE}} = () => {",
"\treturn (",
Expand All @@ -402,7 +401,7 @@
"reactArrowFunctionComponent": {
"prefix": "rafc",
"body": [
"import React from 'react'",
"",
"",
"export const ${1:${TM_FILENAME_BASE}} = () => {",
"\treturn (",
Expand All @@ -418,7 +417,6 @@
"reactArrowFunctionComponentWithPropTypes": {
"prefix": "rafcp",
"body": [
"import React from 'react'",
"import PropTypes from 'prop-types'",
"",
"const ${1:${TM_FILENAME_BASE}} = props => {",
Expand All @@ -441,7 +439,7 @@
"reactClassExportComponentWithPropTypes": {
"prefix": "rcep",
"body": [
"import React, { Component } from 'react'",
"import { Component } from 'react'",
"import PropTypes from 'prop-types'",
"",
"export class ${1:${TM_FILENAME_BASE}} extends Component {",
Expand All @@ -466,7 +464,7 @@
"reactClassPureComponent": {
"prefix": "rpc",
"body": [
"import React, { PureComponent } from 'react'",
"import { PureComponent } from 'react'",
"",
"export default class ${1:${TM_FILENAME_BASE}} extends PureComponent {",
"\trender() {",
Expand All @@ -484,7 +482,7 @@
"reactClassExportPureComponent": {
"prefix": "rpce",
"body": [
"import React, { PureComponent } from 'react'",
"import { PureComponent } from 'react'",
"",
"export class ${1:${TM_FILENAME_BASE}} extends PureComponent {",
"\trender() {",
Expand All @@ -504,7 +502,7 @@
"reactClassPureComponentWithPropTypes": {
"prefix": "rpcp",
"body": [
"import React, { PureComponent } from 'react'",
"import { PureComponent } from 'react'",
"import PropTypes from 'prop-types'",
"",
"export default class ${1:${TM_FILENAME_BASE}} extends PureComponent {",
Expand All @@ -527,7 +525,7 @@
"reactFunctionMemoComponent": {
"prefix": "rmc",
"body": [
"import React, { memo } from 'react'",
"import { memo } from 'react'",
"",
"export default memo(function ${1:${TM_FILENAME_BASE}}() {",
"\treturn (",
Expand All @@ -543,7 +541,7 @@
"reactFunctionMemoComponentWithPropTypes": {
"prefix": "rmcp",
"body": [
"import React, { memo } from 'react'",
"import { memo } from 'react'",
"import PropTypes from 'prop-types'",
"",
"const ${1:${TM_FILENAME_BASE}} = memo(function ${1:${TM_FILENAME_BASE}}(props) {",
Expand All @@ -566,7 +564,7 @@
"reactClassCompomentPropTypes": {
"prefix": "rccp",
"body": [
"import React, { Component } from 'react'",
"import { Component } from 'react'",
"import PropTypes from 'prop-types'",
"",
"export default class ${1:${TM_FILENAME_BASE}} extends Component {",
Expand All @@ -589,7 +587,7 @@
"reactClassCompomentRedux": {
"prefix": "rcredux",
"body": [
"import React, { Component } from 'react'",
"import { Component } from 'react'",
"import { connect } from 'react-redux'",
"",
"export class ${1:${TM_FILENAME_BASE}} extends Component {",
Expand Down Expand Up @@ -618,7 +616,7 @@
"reactClassCompomentReduxPropTypes": {
"prefix": "rcreduxp",
"body": [
"import React, { Component } from 'react'",
"import { Component } from 'react'",
"import PropTypes from 'prop-types'",
"import { connect } from 'react-redux'",
"",
Expand Down Expand Up @@ -652,7 +650,6 @@
"reactFunctionalCompomentRedux": {
"prefix": "rfcredux",
"body": [
"import React from 'react'",
"import { connect } from 'react-redux'",
"",
"export const ${1:${TM_FILENAME_BASE}} = (props) => {",
Expand All @@ -679,7 +676,6 @@
"reactFunctionalCompomentReduxPropTypes": {
"prefix": "rfcreduxp",
"body": [
"import React from 'react'",
"import PropTypes from 'prop-types'",
"import { connect } from 'react-redux'",
"",
Expand Down