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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vanilla-dom

Weekly Downloads

1

Version

0.0.3

License

ISC

Last publish

Collaborators

  • jasonlaster11