r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.72k stars 441 forks source link

Redundant import of React #203

Closed krush11 closed 2 years ago

krush11 commented 2 years ago

In every react snippet, there is an import of React like this:

import React from 'react'

However, this seems redundant. Could it be removed?

ice-chillios commented 2 years ago

@krush11 It's only redundant in react 17 with transform. Currently react 17 is supported with _ prefix. In a future release, there will be configuration for that.