Svelte has a built in state/store management functionality.
https://svelte.dev/tutorial/writable-stores
You can also use event dispatching as a way to pass state around, depending on the situation/use case of course:
https://svelte.dev/tutorial/event-forwarding
Svelte has a built in state/store management functionality. https://svelte.dev/tutorial/writable-stores You can also use event dispatching as a way to pass state around, depending on the situation/use case of course: https://svelte.dev/tutorial/event-forwarding