Skip to content

Instantly share code, notes, and snippets.

@imkost
Created December 5, 2016 19:33
Show Gist options
  • Select an option

  • Save imkost/107adeee9d0cce03e4338c6dabf0d101 to your computer and use it in GitHub Desktop.

Select an option

Save imkost/107adeee9d0cce03e4338c6dabf0d101 to your computer and use it in GitHub Desktop.

Revisions

  1. K. Zemtsovsky created this gist Dec 5, 2016.
    11 changes: 11 additions & 0 deletions slender3_Box.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function Box({ text }) {
    return `
    <div class="box" onClick="Box.onClick()">
    ${text}
    </div>
    `;
    }

    Box.onClick = () => {
    alert('box was clicked');
    };