mirror of https://github.com/sveltejs/svelte
parent
85cc9bc613
commit
bec570891a
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let props = $props();
|
||||
</script>
|
||||
|
||||
<div {...props}></div>
|
@ -0,0 +1,6 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
ssrHtml: `<div></div>`,
|
||||
html: `<div>set from component</div>`
|
||||
});
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Child from './Child.svelte';
|
||||
|
||||
let stuff = $state({
|
||||
[Symbol()]: (node) => node.textContent = 'set from component'
|
||||
});
|
||||
</script>
|
||||
|
||||
<Child {...stuff} />
|
Loading…
Reference in new issue