<script>
import Child from './Child.svelte';
let refChild = Child;
function assignComponent(c) {
refChild = c;
}
</script>
I am a parent component.<br/><br/>
<svelte:component this={refChild} />
<br/><br/>
<button on:click={() => assignComponent(null)}>Hide Child component from placeholder</button>
<button on:click={() => assignComponent(Child)}>Re-assign Child domponent to placeholder</button>