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

.jsx extension #287

Closed
pungggi opened this issue Jul 29, 2016 · 5 comments
Closed

.jsx extension #287

pungggi opened this issue Jul 29, 2016 · 5 comments

Comments

@pungggi
Copy link

pungggi commented Jul 29, 2016

Note from Maintainers

We support JSX extension since 0.4.1 even though we don’t recommend it.
Read the release notes.


I changed the App.js in App.jsx and get this

> Failed to compile.

Error in ./src/App.jsx
Module parse failed: c:\Users\Alessandro\Dev\ciqooo\src\App.jsx Unexpected token (8:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (8:6)
 @ ./src/index.js 11:11-31

I d like to see if it is a 'real' javascript' or JSX
in addition when coding in .jsx i get more support from my editor (Visual studio code)
for emmet.

@pungggi pungggi changed the title .jsx extenstion .jsx extension Jul 29, 2016
@alexzherdev
Copy link
Contributor

Was discussed in #87

@gaearon
Copy link
Contributor

gaearon commented Jul 29, 2016

Let’s keep open until I figure out what Emmet is and how it’s used in VS Code. 😄
If there’s no way to configure it to activate in .js files I guess we’ll have to give in.

@pungggi
Copy link
Author

pungggi commented Jul 29, 2016

I closed..found this http:https://stackoverflow.com/a/37592711/343112

what Emmet is

see http:https://docs.emmet.io/

in html files (or in jsx) you type for example:
p>ul>li*4

emmet will transform to

<p> <ul> <li></li> <li></li> <li></li> <li></li> </ul> </p>

@pungggi pungggi closed this as completed Jul 29, 2016
@gaearon
Copy link
Contributor

gaearon commented Jul 29, 2016

Ah, great to know. I’ll open another issue to warn users about JSX.

@gaearon
Copy link
Contributor

gaearon commented Sep 3, 2016

FYI we support JSX extension since 0.4.1 even though we don’t recommend it.
Read the release notes.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants