Experimental support for creating custom Blazor elements is provided through the Microsoft.AspNetCore.Components.CustomElements NuGet package, although it shows no downloads two days after the announcement. It uses standard HTML interfaces to implement custom HTML elements.
“This feature is experimental as we are still working on some details on how best to support custom elements with Blazor,” Daniel Roth, senior program manager, ASP.NET, said in the post. “We appreciate your feedback on how this particular approach meets your requirements. ”
Once created, these custom elements – a custom counter, for example – can also be used in other Single Page Application (SPA) web frameworks such as React and Angular. A sample project, aptly titled Blazor Custom Elements, demonstrates how to do just that, providing examples of how to work with these frameworks and the client-side Blazor WebAssembly component as well as Blazor Server.
Other items related to Blazor in Roth’s post include:
- Manipulate Blazor’s query string
- Updated Blazor templates to set page title
- Long poll transport disabled for Blazor Server
- Customize Blazor WebAssembly packaging
Note that several bugs were reported in the comments of Roth’s post, relating to other things on Hot Reload, and he said on September 15 that he expects a patch to fix at least some of them. them in the next few days.
According to the ASP.NET Core Roadmap for .NET 6, Blazor’s big job is pretty much done:
There were other things mentioned in the announcement as well, some of which are not specifically about Blazor:
- PageX and PageY in MouseEventArgs
- Model improvements
- Minimal API updates
- Support for Latin1 encoded request headers in HttpSysServer
- Issue KestrelServerOptions through the EventSource event
- Add timestamps and PIDs to ASP.NET Core module logs
- New DiagnosticSource event for rejected HTTP requests
- Create a ConnectionContext from an Accept Socket
- Simplified HTTP / 3 configuration
- Upgrade to Duende Identity Server
David Ramel is editor and writer for Converge360.