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

import React from 'react' #288

Open
tmerlet opened this issue Feb 20, 2023 · 2 comments
Open

import React from 'react' #288

tmerlet opened this issue Feb 20, 2023 · 2 comments

Comments

@tmerlet
Copy link

tmerlet commented Feb 20, 2023

Hey,

Thanks for this awsome extension.

Is anybody else having problems with the import react setting?

in my vscode settings I have

  "reactSnippets.settings.prettierEnabled": true,
  "reactSnippets.settings.importReactOnTop": false

Prettier option works, but react is always being imported at the top of the file.

react - 18.2.0
vscode - 1.75.1

@hubcio2115
Copy link

hubcio2115 commented Mar 23, 2023

I did have the same problem. After reading this issue I was playing with the settings and turning it on, then turning prettier setting off then turning import react off fixed it for me.

Also after reanabling prettier it still works.

This solution also has been mentioned in this thread

@hymced
Copy link

hymced commented Nov 28, 2023

I did have the same problem. After reading this issue I was playing with the settings and turning it on, then turning prettier setting off then turning import react off fixed it for me.

Also after reanabling prettier it still works.

This solution also has been mentioned in this thread

This did not work for me, the only thing that worked is mentioned here.

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

No branches or pull requests

3 participants