Ya! You'd probably like htm. It's got some weird but everything does.
-
-
Replying to @brianleroux
Oh, there is a thing called htm? I thought that was a typo.
1 reply 0 retweets 0 likes -
Replying to @seldo @brianleroux
I guess it is this https://github.com/developit/htm but google kept assuming I meant HTML so I had to work to find it.
1 reply 0 retweets 4 likes -
Replying to @seldo @brianleroux
I like in theory but <${Log} />... so much syntax noise. That screenshot doesn’t exactly show what happens in a deeper tree full of custom components.
2 replies 0 retweets 12 likes -
My contention is that tradeoffs can make this a net-neutral: return <Foo>bar</Foo> // vs: return html`<${Foo}>bar<//>`
4 replies 0 retweets 5 likes -
Replying to @_developit @dan_abramov and
That second syntax is staggeringly ugly. If someone actually prefers this to the first syntax: why?!
1 reply 0 retweets 3 likes -
Replying to @code_punkt @dan_abramov and
The second is written in JavaScript, the first is not. Strangely visceral response btw, this is just code...
5 replies 0 retweets 10 likes -
Replying to @_developit @code_punkt and
We radically changed JavaScript to allow string templates to exist, there's no reason we can't change it again to allow JSX to be JavaScript. We even did it before, when it was called E4X.
3 replies 0 retweets 13 likes -
Replying to @seldo @code_punkt and
I'm not against this and hope I don't come across as having taken that position. However, JSX has explicitly not been on a path to standardization since its inception and I have not come across anyone doing the groundwork of making that (massive) change.
2 replies 0 retweets 3 likes -
Replying to @_developit @seldo and
There are a metric ton of standardization issues to be thought through if something like JSX were to be brought into JS itself. Personally I'm conflicted on whether it's more logical to standardize a syntax for trees, or whether we should push for a general DSL mechanism.
2 replies 0 retweets 4 likes
A push to bring it in from the cold would at least make the size of the challenge more apparent. Looking at it from the spec side today, it seems monumental, but if breaking it up were palatable to the proposers, progress could be made.
-
-
Replying to @slightlylate @seldo and
Agreed. Strictly in terms of my own opinion, I think it would make sense to explore standardization of the _value_ of JSX rather than JSX itself. It's very possible there's an equally lovely syntax that happens to mesh well with JS or enable additional use-cases.
1 reply 0 retweets 7 likes -
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.