News for hackers. Stuff that matters.
Re:Twitter.com's HTML, which is produced by React Native for... by zachrip on Thursday September 02, 2021 @01:17PM (#28394717)
Adding to this - jsx (the templating that react and other libraries use) is compiled down to calls for React.createElement (this is configurable). And jsx is a sort of superset of html so it's not exactly html tags, it just looks a lot like it.

https://www.typescriptlang.org/play?#code/DwEwlgbgfAsAUAAgcA...

Re:Twitter.com's HTML, which is produced by React Native for... by dragonwriter on Thursday September 02, 2021 @06:16PM (#28398058)
> And jsx is a sort of superset of html

More accurately, JSX is shaped like HTML, and some of the the transforms for JSX to JS have built in special handling for the standard HTML tags.