Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "bdom", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "a jsx compatible shorthand library for generating actual dom elements instead of virtual ones", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# bdom - jsx compatible shorthand tool for creating actual dom elements | ||
This is useful, because it lets you create dom elements in a readable way and get references to the dom elements that you want to modify. | ||
## installation | ||
@@ -21,2 +23,7 @@ ```bash | ||
let secs = 0 | ||
const intervalRef = setInterval(() => { | ||
txt.nodeValue = 'BAR-' + (secs += 1) | ||
}, 1000) | ||
document.findElementsByTagName('body')[0].appendChild(title) | ||
@@ -29,2 +36,3 @@ ``` | ||
const dom = require('bdom') | ||
const { text } = dom | ||
const React = dom | ||
@@ -40,2 +48,7 @@ | ||
let secs = 0 | ||
const intervalRef = setInterval(() => { | ||
txt.nodeValue = 'BAR-' + (secs += 1) | ||
}, 1000) | ||
document.findElementsByTagName('body')[0].appendChild(title) | ||
@@ -42,0 +55,0 @@ ``` |
11348
58