Replies: 3 comments
-
Having to look at two different files to understand what's going on with variable scope is a bad idea. If you want to have something that's in its own file and is reusable, you should just use a component. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Importing snippets from an external file would improve readability by keeping |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Snippets (Svelte 5 feature) are powerful and could be better, if we could put them in an external file to be reusable.
Example:
Beta Was this translation helpful? Give feedback.
All reactions