Skip to content

Consider adding babel-plugin-react-require #785

Closed
@just-boris

Description

@just-boris

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions