Scoped Styling
0 questions
Svelte scopes component CSS at compile time by generating class hashes, with the global escape hatch for the cases that need to break out. Interviewers ask why a style silently has no effect on a child component's markup — the answer is scoping plus removal of selectors the compiler thinks are unused.
questions
0 questions