3 ms·
Fun fact: the very first time I heard about React and JSX, at a conference in 2014 or 2015, this is actually how it was presented. The presenter created a scrip
by brundolf 5y ago
Fun fact: the very first time I heard about React and JSX, at a conference in 2014 or 2015, this is actually how it was presented. The presenter created a script tag with type="text/jsx" and jumped right in. I assume that was the official way to use it at the time; I got the impression they expected it to become a web standard eventually. JS transpiling and bundling weren't really a common thing yet, as far as I know.
Of course we know how that story ended. It's dramatically more efficient to build ahead of time (lacking any kind of native support). Still, part of me misses the days when it was normal to just open an HTML file and start hacking.
Maybe one day we'll get native templating of some kind in the browser. It kind of amazes me that we haven't yet.