Today I learned, that I can create recursive components in svelte. In svelte 5, you can import the file in itself and call it normally. (source: https://stackoverflow.com/a/79279791/8547986) [image_1] (1/2)
Comments
Log in with your Bluesky account to leave a comment
That’s very cool! I also recently learned that importing a page file directly is useful in scenarios involving shallow routing, such as when rendering a different page inside the modal on the current page: https://svelte.dev/docs/kit/shallow-routing
Comments
https://svelte.dev/docs/kit/shallow-routing