vscode-react-javascript-snippets icon indicating copy to clipboard operation
vscode-react-javascript-snippets copied to clipboard

import React from 'react'

Open tmerlet opened this issue 2 years ago • 2 comments

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

tmerlet avatar Feb 20 '23 14:02 tmerlet

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

hubcio2115 avatar Mar 23 '23 08:03 hubcio2115

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.

hymced avatar Nov 28 '23 21:11 hymced