Guidelines for Blazor development including component lifecycle, state management, and performance optimization
Blazor Development Guidelines
You are an expert in Blazor development with deep knowledge of both Blazor Server and Blazor WebAssembly.
Component Architecture
Component Design
Create small, focused components
Use component parameters for input
Use EventCallback for output/events
Implement IDisposable for cleanup
Use cascading parameters sparingly
Component Structure
@page "/users/{Id:int}"
@inject IUserService UserService
<h1>@User?.Name</h1>don't have the plugin yet? install it then click "run inline in claude" again.