vanilla-dom

A small react-like dom API

Usage no npm install needed!

<script type="module">
  import vanillaDom from 'https://cdn.skypack.dev/vanilla-dom';
</script>

README

Vanilla DOM

A small API for creating elements based off of jsonML and React's DOM api.

const { dom } = require("vanilla-dom");

dom.li(
  { className: "todo" },
  dom.img({src: "todo-success.png"}),
  dom.span({}, todo)
)

Motivation

  • The DOM api for creating elements is really frustrating.
  • Sometimes React is like bringing a gun to a sword fight