r5n-labs/vscode-react-javascript-snippets

Disable import React from 'react'

chadleong opened this issue · 2 comments

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

Thanks that does the trick !