-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove automatic import of React #2
Comments
@ralmidani yup I figured making disabling or specifying the auto-import a configuration option would be a good choice. I'll take a look at that today |
@ralmidani I added a So to compile for Vue, you could do eg on the command line:
or if you're passing a config options object into a build tool, set
Looking at Vue, the differences I saw as far as how JSX should be compiled were:
For now, see the test in this PR (or ask) if you have questions about how these syntaxes are working for Vue. I'll add documentation for how to configure the This PR should be a good example if you're interested in how to add a config/command-line option to the compiler. And yes we should support any frameworks that use JSX if possible, I haven't looked at the others you mentioned (Mithril, Preact, Inferno) - are you interested in seeing if you can add the relevant |
I plan to use Vue rather than React for my own real-world projects. Mithril, Preact, and Inferno also support JSX. While React is the most popular, shouldn't we avoid making assumptions about which library a dev is using?
The text was updated successfully, but these errors were encountered: