Skip to content

Commit

Permalink
Creating a Custom Element
Browse files Browse the repository at this point in the history
  • Loading branch information
benburton committed Jan 30, 2017
1 parent 191fc3a commit 6bca823
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/index.js
@@ -0,0 +1,12 @@
export default class Toggle extends HTMLElement {

constructor() {
super();
this.innerHTML = [
'<div>',
"hello, world",
'</div>'
].join('\n');
}

}

0 comments on commit 6bca823

Please sign in to comment.