jsx-runtime
jsx-runtime copied to clipboard
[Experimental] Extremely lightweight JSX runtime (<3KB) to write JSX without React in TypeScript or JavaScript.
Hi. Great library, thank for your effort. I have a suggestion (but won't make a PR myself). This chunk of code would support data attributes: ```javascript if(name.startsWith("data-")) { // @ts-ignore...
The render method accepts jsx, and something like text nodes, but plain text should be supported too. Otherwise it's neccesary to wrap text (or numbers) inside tags, like: `render(Hi, target);`...
IMO, render should replace the current content of the target element. Like: `container.replaceChildren(elem)` Instead of: `container.appendChild(elem)` Otherwise, when I want to refresh content I see elements adding up instead of...