How does C# code become JavaScript?
A Roslyn-based compiler reads your components at build time and emits TypeScript, which is bundled to JavaScript. Two layers of type checking — the C# compiler, then the TypeScript one — before anything reaches a browser.