paint-brush
How to Create a Blazor Component Without Lifecycle Methodsby@madhup
212 reads

How to Create a Blazor Component Without Lifecycle Methods

by Madhu Sudhanan P4mNovember 4th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.
featured image - How to Create a Blazor Component Without Lifecycle Methods
Madhu Sudhanan P HackerNoon profile picture
Madhu Sudhanan P

Madhu Sudhanan P

@madhup

Front end web developer with passion for problem solving and learning. https://madhust.github.io/

About @madhup
LEARN MORE ABOUT @MADHUP'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Madhu Sudhanan P HackerNoon profile picture
Madhu Sudhanan P@madhup
Front end web developer with passion for problem solving and learning. https://madhust.github.io/

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Coffee-web