Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Code for blogpost "Using JSX for your own lightweight declarative library":
// ... inside our createElement when adding children:
children.flat().forEach(child => {
const node = !isString(child) ? child : document.createTextNode(child);
// ... createElement continues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.