How to Create a Blazor Component Without Lifecycle Methods

Written by madhup | Published 2020/11/04
Tech Story Tags: blazor | aspnet-core | dotnet | dotnet-core | programming | coding | coding-skills | software-development

TLDR 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.via the TL;DR App

no story

Written by madhup | Front end web developer with passion for problem solving and learning. https://madhust.github.io/
Published by HackerNoon on 2020/11/04