Skip to content

v1.4.0

Compare
Choose a tag to compare
@svileng svileng released this 30 Nov 14:47
· 23 commits to master since this release
b27a105

Element helpers for common HTML elements are now exported by docrel, so instead of using the create function to create the elements, you can now just do:

import {div, input, button} from "docrel"

before:

import {create} from "docrel"
const [div, input, button] = create("div", "input", "button")

The create function is still available, so both of the examples above will work.