where the tree was built using function calls. In such a system, HTML was often represented by an AST (or just a wrapper around a string!) and you could compose HTML together just by creating and calling a function.
This is what JSX/TSX are doing under the hood: they're transpiled to a call to React.createElement. You don't actually need them, though.
This is what JSX/TSX are doing under the hood: they're transpiled to a call to React.createElement. You don't actually need them, though.