vscode-react-javascript-snippets
vscode-react-javascript-snippets copied to clipboard
import React from 'react'
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
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
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.