Skip to content

Instantly share code, notes, and snippets.

class CustomButton extends HTMLElement {
constructor() {
super();
const shadow = this.attachShadow({ mode: "open" });
const template = `
<style>
.custom-button {
padding: 10px 20px;
@dextar47
dextar47 / clock-in-react.markdown
Last active March 24, 2019 11:02
Clock in react