‘ChildContent’: member names cannot be the same as their enclosing type. What does this mean?
The parameter name and component (file) name should not be the same. They must be unique. For example, in the below code snippet the component name is ChildComponent so we cannot have a parameter with the same name it will not compile
How do you increase server timeout to prevent elapsing without receiving a message from the server?
Scenario: Invoke JS method call from .NET. Here is how to increase JavaScript client timeout.
How does server-side Blazor work?
Server-side Blazor is executed on the server within an ASP.NET Core application. All UI updates, event handling, and JavaScript calls are handled from server by using a SignalR connection, even a button click will go to server. For more information regarding Blazor client-side and server-side apps, check this link.
How does client-side Blazor work?
Client-side Blazor makes use of WebAssembly, which is used to run high-level languages on browsers. Necessary .NET WebAssembly-related code and its dependencies are downloaded to the browser, and the app is executed directly on the browser UI thread. All UI updates and event handling occur within the same process.
How do you share and reuse components across various Blazor projects?
Razor Class Library (RCL) can be used to share components across various projects and Blazor apps. RCL can be utilized from: Another project in the solution. A NuGet package. A referenced .NET library. For more information regarding RCL, check out this link.