Galooshi / import-js

A tool to simplify importing JS modules
MIT License
524 stars 70 forks source link

React Imports on JSX #597

Closed mikabytes closed 7 months ago

mikabytes commented 7 months ago

There's a 2-year old PR #580 to not add an import to React when using JSX and version 17 or later.

I'm thinking, only people who need that functionality uses a version of React that is 6 years old (or worse). Perhaps the more sensible thing to do is to remove that functionality altogether, rather than hacking into the package.json and disabling the behavior.

What do you think?

trotzig commented 7 months ago

Yeah seems like the right thing to do.