Skip to content

Instantly share code, notes, and snippets.

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