Skip to content

import React from 'react' #288

Open
Open
@tmerlet

Description

@tmerlet

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

Activity

hubcio2115

hubcio2115 commented on Mar 23, 2023

@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

hymced

hymced commented on Nov 28, 2023

@hymced

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      import React from 'react' · Issue #288 · r5n-labs/vscode-react-javascript-snippets