@rendermode InteractiveServer <h1>This component runs on the server interactively</h1>
A product page can use Static SSR for the description and reviews, but an Interactive Server component for the “Add to Cart” button and real-time inventory check. The @rendermode Directive In .NET 8+, you assign a render mode using the @rendermode directive:
Or programmatically:
@rendermode InteractiveServer <h1>This component runs on the server interactively</h1>
A product page can use Static SSR for the description and reviews, but an Interactive Server component for the “Add to Cart” button and real-time inventory check. The @rendermode Directive In .NET 8+, you assign a render mode using the @rendermode directive:
Or programmatically: