top | item 34370282

(no title)

nickbauman | 3 years ago

I was just going to say this too: JSX is a DSL. And a particularly screwy one!

discuss

order

k4rli|3 years ago

What's screwy about it? In my experience it's been painless to switch between html+vanillajs and React projects.

afavour|3 years ago

Just one example: the class attribute in HTML vs className in JSX.

It’s not that it’s complicated, you just use one or the other. But it’s very indicative of what’s going on under the hood: despite looking exactly like HTML, JSX isn’t creating HTML. It’s creating elements via JavaScript APIs.

nickbauman|3 years ago

JSX has an Async "tag"...

Let that sink in.

<Async></Async>