fake DOM for RE:DOM
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
lib
test
.gitignore
README.md
package.json
rollup.config.js
watch.js

README.md

js-semistandard-style

NO:DOM

fake DOM for RE:DOM

installing

npm install nodom

usage

const { Document, render } = require('nodom');
const document = new Document();
const { el, mount } = require('redom');

mount(document.body, el('h1', 'Hello world!'));

console.log(render(document.body)); // <body><h1>Hello world!</h1></body>