Closed antony closed 5 years ago
I think it's not immediately clear how to use the component so I'd add something like:
async oncreate () {
const MyComponent = await import("../path/to/MyComponent");
this.set({MyComponent})
}
and mention that you use it as:
<svelte:component this={MyComponent}
{prop1}
prop2="foo"
/>
Fixes #44