mirror of https://github.com/sveltejs/svelte
382 B
382 B
title |
---|
.svelte.js and .svelte.ts files |
Besides .svelte
files, Svelte also operates on .svelte.js
and .svelte.ts
files.
These behave like any other .js
or .ts
module, except that you can use runes. This is useful for creating reusable reactive logic, or sharing reactive state across your app.
[!LEGACY] This is a concept that didn't exist prior to Svelte 5