Hi @Developer,
In .NET 8, you need use @rendermode
attribute.
Sets the render mode of a Razor component:
-
InteractiveServer
: Applies interactive server rendering using Blazor Server. -
InteractiveWebAssembly
: Applies interactive WebAssembly rendering using Blazor WebAssembly. -
InteractiveAuto
: Initially applies interactive WebAssembly rendering using Blazor Server, and then applies interactive WebAssembly rendering using WebAssembly on subsequent visits after the Blazor bundle is downloaded.
More details refer to: @rendermodel definition
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena