Argument isn't tools required, it's lack of standardized output language. tsc strips code of types which = vanilla ESM, whereas JSX turns code into function calls that are coupled specifically to (p)react (i.e. non-standardized format)
-
-
So was all jQuery evil back in its day? Because that’s the same thing.
1 reply 0 retweets 0 likes -
jQuery uses normal HTML for templating, which is standardized
1 reply 0 retweets 0 likes -
Yes, and JSX is just JavaScript, which is standardized.
1 reply 0 retweets 1 like -
Pretty sure that React.createElement won't work unless (p)react is being used
1 reply 0 retweets 0 likes -
Neither will $() work unless jQuery is being used. You’re making my argument for me.
1 reply 0 retweets 1 like -
We're talking specifically about the output format for templating (React: JSX, jQuery: HTML). Obv all JS boils down to JS. Problem is that JSX creates more severe lock-in, since it's templates only will work with (p)react libs/toolchains
1 reply 0 retweets 0 likes -
You’re kinda moving the goalposts on the conversation there, but I see your point. The benefits outweigh the cost by a factor of 100, IMO.
1 reply 0 retweets 1 like -
Replying to @keithjgrant @ericsimons40 and
JSX allows for React to make performance and code simplicity gains that are simply not feasible with traditional templates
3 replies 0 retweets 2 likes -
Replying to @keithjgrant @ericsimons40 and
Modern frameworks are piggybacking on JSX in one form or another, https://github.com/Polymer/lit-html#nested-templates … So I strongly disagree with
@slightlylate, people get familiarize with one framework and all other frameworks aligns with it, it's easy to jump ship because of familiarity.1 reply 0 retweets 0 likes
lit-html is *literally* the opposite play. I uses a small abstraction on top of an already standardised syntax that requires neither inventing new JS nor new HTML extensions
-
-
Replying to @slightlylate @keithjgrant and
it heavily borrows JSX and React coding style, ask any dev who sees that, they'll tell you it looks like React
2 replies 0 retweets 0 likes -
Replying to @infinitelychriz @slightlylate and
Sure, but stylistic resemblance is not the point. lit-html is intentionally designed to output to a *standardized* syntax, which is something JSX lacks
1 reply 0 retweets 1 like - 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.