How to Create a Blazor Component Without Lifecycle Methods
Too Long; Didn't Read
In this blog post, I am going to share how I created a Blazor component without life-cycle methods and razor file syntax. I found this approach after going through various components used in Blazor source code. The Rating component is a class only component so I am not creating a Razor component item. I hope you have learned one of many ways of creating Blazor components, but I am neither recommending this as the best approach nor insisting to use this approach for performance benefits. The final rating component will look like below below.