v1.4.0
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.