UNPKG

uger

Version:

```ts import { body } from "uger";

18 lines (13 loc) 433 B
# UGER #### Example ###### typesript ```ts import { body } from "uger"; body.add("button") // Creates a button element in the body of the document .text("Click here") // Changes innerText of this element .on("click", () => // Adds event listener on click event body.add("p") // Creates new element .text("Wow you clicked!!!") .once("click", (ev, elem) => elem.remove()); // Deletes new element ); ```