Skip to content
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

React 17 and typescript 4.1 doesn't need suggestion to import React with JSX #117177

Closed
Navipro70 opened this issue Feb 21, 2021 · 1 comment
Closed
Assignees

Comments

@Navipro70
Copy link

  • VS Code Version: 1.53.2
  • OS Version: macOS catalina 10.15.5
  • React version: 17.0.1
  • TypeScript version: 4.1.5

Steps to Reproduce:

  1. Create project with React 17 v. and TypeScript 4.1.
  2. When you try use new feature of React 17 (JSX without importing React by default), and you wanna import your own/lib JSX element, VScode suggest you import React first, and then your own/lib JSX component.

On screenshot I try import only Navlink without React, because I don't need React to compile. But VScode suggest only React without Navlink.

Screen Shot 2021-02-21 at 14 21 46

Does this issue occur when all extensions are disabled?: Yes/No

@yume-chan
Copy link
Contributor

Related: microsoft/TypeScript#41762

@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants