vanilla-dom

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vanilla-dom

Weekly Downloads

2

Version

0.0.3

License

ISC

Last publish

Collaborators

  • jasonlaster11