Skip to content

Instantly share code, notes, and snippets.

@sbatson5
Last active February 24, 2020 21:22
Show Gist options
  • Save sbatson5/0aaf3f9a0febdcb9907b6c721336d04b to your computer and use it in GitHub Desktop.
Save sbatson5/0aaf3f9a0febdcb9907b6c721336d04b to your computer and use it in GitHub Desktop.
Initial setup
class CandidateImage extends HTMLElement {
connectedCallback() {
console.log('Adding a candidate!');
this.innerHTML = '<img src="https://cdn-candidates.com/bernie.jpg" />';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment