r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable import React from 'react'

chadleong opened this issue · comments

commented

Since this statement is no longer needed in React 17+, can this be disabled while using rafce

In the extension settings there is a setting called "Import React On Top" that "controls if snippets should add import React from 'react'; at the top of components. Use if you have React +17 and use jsx transform."
I'm pretty sure, you're looking for that.

PS. works on VS Code

commented

Thanks that does the trick !