svelte/test/hydration/samples/dynamic-text/_config.js

15 lines
165 B

export default {
props: {
name: 'world'
},
snapshot(target) {
const h1 = target.querySelector('h1');
return {
h1,
text: h1.childNodes[0]
};
}
};