Native Web Components
You can include native web components inside the HTML template strings that get rendered by Reef.
Because web components control their own internal content, Reef will modify element attributes, but will not diff content within them.
// Create a reactive store
let data = store({
heading: 'My Counter',
emoji: 'đđ'
});
// Create a template
function template () {
let {heading, emoji} = data;
return `
<h1>${heading} ${emoji}</h1>
<count-up></count-up>`;
}
// Reef will NOT diff the content of the count-up element
data.heading = 'Count it';