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
npm install bdom
usage
const dom = const H1 text Svg Link Text Figcaption style = dom // capital elements attributes and text lower case const txt = const title = ) let secs = 0const intervalRef = document0
...and the same by replacing React and in jsx
const dom = const text = domconst React = dom const txt = const title = <h1> txt <figcaption style="background-color: orange; font-size:0.5rem;">a friend of foo</figcaption> <svg width="100" height="100" > <link href="https://google.com"> <text x="10" y="25" >google</text> </link> </svg></h1> let secs = 0const intervalRef = document0
tests
npm test
build
npm run build