Good news for Blazor Developers
The Blazor developers can now create custom elements & render components from JavaScript.
Microsoft’s Blazor, a web development technology, has improved with its .NET 6 Release Candidate 1. It now has the ability to create custom elements, render components from JavaScript and generate Angular & React Components.
Blazor is a part of the ASP.NET core component of .NET 6. It runs on #C instead of JavaScript. .NET 6 was released as RC 1 on Sept. 14
The experimental support to create a custom Blazor is given by Microsoft.AspNetCore.Components.CustomElements NuGet package. Also, it uses a Standard HTML interface to implement the custom HTML elements.
Though the feature is only experimental, the team is working on details to support the best custom elements with Blazor. After its creation, the custom elements will be available for use in various other single-page applications such as React & Angular.
Apart from this, the developers can render Blazor components from JavaScript. This provides for the integration of Blazor components with the existing JavaScript apps. This will help those developers who already have JavaScript apps that need to be maintained. It removes the difficulty of building the common apps twice in .NET or JavaScript.
This new support also provides other functionality such as the ability to generate Angular and React components using Blazor. The other features include:
1. Manipulating the query string from Blazor
2. .NET to JavaScript streaming
3. Updated Blazor templates to set the page titles.
4. Disabled long polling transport for Blazor Server.
However, there were some bugs that had been reported to Roth. But he promised to fix them sooner. Other than this, the project of Blazor is pretty much done now.