Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consider adding babel-plugin-react-require #785

Closed
just-boris opened this issue Sep 27, 2016 · 1 comment
Closed

Consider adding babel-plugin-react-require #785

just-boris opened this issue Sep 27, 2016 · 1 comment

Comments

@just-boris
Copy link
Contributor

just-boris commented Sep 27, 2016

In my project I use awesome babel-plugin-react-require.

Initially, I was surprised why I need to import React into module with my component even if I don't use this directly. Especially in module with functional component.

export default function MyComponent() {
  return <p>MyComponent</p>;
}

This plugin solves that, it adds React import into any file with JSX expression, which makes your code more seamless.

Would you like to enable this plugin here as well?

@gaearon
Copy link
Contributor

gaearon commented Sep 27, 2016

Thanks for the suggestion!
We won’t use it for this reason: #603 (comment).

@gaearon gaearon closed this as completed Sep 27, 2016
@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants