Skip to content

Remove React import from snippets #166

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

Closed
dantman opened this issue Jan 14, 2021 · 1 comment
Closed

Remove React import from snippets #166

dantman opened this issue Jan 14, 2021 · 1 comment

Comments

@dantman
Copy link

dantman commented Jan 14, 2021

Imports like rafc(e) include an import React from 'react';.

Current react transforms (both Babel and TypeScript) no longer expect React to be in scope and auto-import the new export from react that they need.

imr already includes this line if you absolutely need it.

@ice-chillios
Copy link

Duplication of #153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants