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

why my react file doesn't show react icon #3501

Closed
1 task done
Difkyear opened this issue May 7, 2024 · 5 comments
Closed
1 task done

why my react file doesn't show react icon #3501

Difkyear opened this issue May 7, 2024 · 5 comments

Comments

@Difkyear
Copy link

Difkyear commented May 7, 2024

Housekeeping

  • I'm sure this issue is not a duplicate

Information:

Screenshot 2024-05-07 094210
@mrahmadhassankhan
Copy link

mrahmadhassankhan commented May 9, 2024

Can I see the code I'm willing to help @Difkyear

@remcohaszing
Copy link
Contributor

The React icon is used for the javascriptreact language. The .js files use the javascript language. This is why you’re seeing the regular JavaScript icon, and not the React icon. This is also why syntax highlighting and other editor features don’t behave the way they should for you. It’s best to use the .jsx extension for JSX files.

@Difkyear
Copy link
Author

The React icon is used for the javascriptreact language. The .js files use the javascript language. This is why you’re seeing the regular JavaScript icon, and not the React icon. This is also why syntax highlighting and other editor features don’t behave the way they should for you. It’s best to use the .jsx extension for JSX files.

i'm trying to use .jsx extension , but it's the same results.
image

@Difkyear
Copy link
Author

Can I see the code I'm willing to help @Difkyear

that code it's just created automatically by using npx create-react-app,
so i don't think it's the code causing the problem

@Difkyear
Copy link
Author

i'm solving this problem now, the reason cause react icon doesn't show up, it's because my vscode file association setting , i haven't associated .jsx extention to javascriptreact
image

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