Svelte Flashcards
What is reactivity?
What are reactive declarations?
Why wont methods like splice trigger state updates? And how canw e get around this?
How do you declare props?
how do you handle DOM events?
Can you declare event Handlers inline?
What are event modifiers?
How do you crate component events?
What is event forwarding and why do you need them?
How does data flow in svelte?
What is the bind directive?
How does svelte handle numeric inputs?
How do you bind a checkbox input?
How do you bind select inputs
Explain group inputs
Explain the component lifecycle in svelte.
Explain onMount.
Explain beforeUpdate and afterUpdate and how they are useful.
Explain tick,.
What is a store and when should it be used?
How do you avoid memory leaks when subscribing to ‘svelte’ stores?
Explain readable stores.
Explain derived stores
How do you create custom stores?