3 ms·
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
by zachrip 5y ago
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/DwEwlgbgfAsAUAAgcADgg9gOwMIBswDGA1gLwDeAFAJQIlQIFYDO6uApgHS7oDmFA5ACN06FPyoBfKABc2TacAD0KWHCXhoQA https://www.typescriptlang.org/play?#code/DwEwlgbgfAsAUAAgcA...
- dragonwriter 5y ago> 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.