DEV Community

How to use Emmet with React/JSX?

Žane Suhadolnik on August 29, 2018

Hi, hello, dober dan! This isn't a tutorial sadly, more of a request for knowledge :D Been learning React recently. As probably many of you I als...
Collapse
 
mksdziag profile image
mksdziag • Edited

Hi,
For me answer from stackoverflow.com works perfectly

// add to your vscode settings
{
"files.associations": {
"*.js": "javascriptreact"
}
}

Collapse
 
emmanuel112673 profile image
Emmanuel112673

Thank you

Collapse
 
zasuh_ profile image
Žane Suhadolnik

Thank you!

Collapse
 
defman profile image
Sergey Kislyakov

Isn't jsx supposed to contain JSX/JS and JS to contain JS only?

Collapse
 
qoobes profile image
Ahmed Haracic

Yes, but it's still not used in most cases.