Skip to content

Instantly share code, notes, and snippets.

@ksherlock
Created September 26, 2022 17:09
Show Gist options
  • Save ksherlock/f9a3b2bd52fc41e4c0fcf33d8cc7d358 to your computer and use it in GitHub Desktop.
Save ksherlock/f9a3b2bd52fc41e4c0fcf33d8cc7d358 to your computer and use it in GitHub Desktop.
Inactive

A couple time now, I've wanted to create a few elements in Javascript. React (or preact) are too heavy or perhaps aren't appropriate and anyhow I don't want virtual doms and all that, just a real DOM. But building a DOM is tedious; JSX is much nicer. So JSX to the rescue. After all, JSX has nothing to do with virtual doms, it's just syntax sugar for building a tree. Instead of building a virtual dom, it can build a real one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment