Add state class to html
Add state property to component
Refactor js
Inject html into the component using the <content> tag