Prevent morphing specific elements using component IDs
masterIf you want to ensure two elements are replaced rather than morphed (common in custom component systems where different component types might both render as <div>), use the data-nanomorph-component-id attribute.
nanomorph will only morph nodes if they share the exact same value for data-nanomorph-component-id. If the values differ, the old node is replaced with the new one.
var el = html`<div data-nanomorph-component-id="a">hello</div>`
var el2 = html`<div data-nanomorph-component-id="b">goodbye</div>`
// This will result in replacement, not morphing
assert.equal(nanomorph(el, el2), el2)