0

Here is example of what I'm trying to do but as you can see it doesn't really render the component:

https://svelte.dev/repl/22cf0a93cb514d5da54098b50e113cf8?version=3.52.0

{@html '<MyComponent>slot content</MyComponent>'}
1

1 Answer 1

0

This is not possible, because

The expression should be valid standalone HTML

Docs on {@html ...}

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.