Skip to content

Instantly share code, notes, and snippets.

@mikaelbr
Created September 30, 2019 18:11
Show Gist options
  • Save mikaelbr/23b9c0e7ca26da68b8a76df8082b9840 to your computer and use it in GitHub Desktop.
Save mikaelbr/23b9c0e7ca26da68b8a76df8082b9840 to your computer and use it in GitHub Desktop.
const { button } = createUiFramework();
document.body.appendChild(
button(
{
type: "button",
onClick() {
console.log("Hello");
}
},
"Click me!"
)
);
// When clicking button:
//> Hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment