blazor
1
总安装量
1
周安装量
#44124
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill blazor
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
zencoder
1
Skill 文档
Blazor
Blazor allows writing web UIs in C# instead of JavaScript. .NET 9 (2024/2025) brings unified rendering modes (Server, WebAssembly, Auto).
When to Use
- .NET Shops: Sharing code (Models/DTOs) between Backend and Frontend.
- Internal Apps: Rapid development for enterprise tools.
- WebAssembly: Running compiled C# in the browser.
Core Concepts
Blazor Server
UI logic runs on server, updates sent via SignalR. Low latency, requires connection.
Blazor WebAssembly
Runs client-side (DLLs downloaded). Offline support.
Interactive Components
Razor syntax (@code { ... }) combining HTML and C#.
Best Practices (2025)
Do:
- Use
Automode: Load fast (Server), then switch to WASM (Client) in background. - Use
QuickGrid: High performance data grid component. - Use Component Libraries: MudBlazor/Radzen for material UI.
Don’t:
- Don’t block the UI thread: Use
awaitfor long implementations.