jsx / JSX

JSX - a faster, safer, easier JavaScript
http://jsx.github.io/
MIT License
1.46k stars 102 forks source link

Making JSX more HTML-like #343

Closed jpeg729 closed 7 years ago

jpeg729 commented 7 years ago

I can't just copy-paste some html into my render method without making a few tedious changes...

The first is necessary because class is a js reserved keyword, the second because multi-word is a subtraction in js.

BUT jsx isn't javascript - it gets compiled to js. So here are my questions...

  1. How hard would it be to detect and transform those cases during compilation?
  2. Is it useful/desirable that jsx be different from vanilla html?
  3. Would this proposal ease communication with designers, or could it potentially complicate things?

PS. I know there are converters like http://magic.reactjs.net/htmltojsx.htm but that adds an extra step to the process

alex-kinokon commented 7 years ago

You are in the wrong repo.