- CSS 76.2%
- HTML 17.5%
- C# 6.3%
| .vscode | ||
| Todo-List | ||
| README.md | ||
| Todo-List.sln | ||
Practice Blazor Todo
This repository serves as a space for me to practice developing applications using the Blazor framework. As I explore Blazor, I'll document my discoveries, challenges, and lessons learned in this README file.
Discoveries and Lessons
1. Basic Syntax To Declare a Component:
Use @page "/[Purpose]"at the top of a .razor component to declare the component as its purpose. This is also how it's domain structure is declared, so after example.com, the declaration will add that purpose as the page following, so example.com/purpose.
2. The 2 Rendering Modes:
There are effectively 2 rendering modes: Static, or Interactive. Static makes it to where the page only updates upon reload, whereas the Interactive allows input from the user (say, putting something in a todo list) to show up live upon execution.
3. How to Set a Page Title
Towards the top of a .razor component, one will want to use a <PageTitle> (as well as its closer) to declare the title given to the page on the tab itself.
4. How to Bind Pieces Together
One can bind a piece in their page to another by declaring a bind itself. One way that can be done is to just @bind something, but it can also be done if code itself is declaring a piece should exist, say when in Todo.razor on line 29 it declares TodoItem to exist, it ties it to the list that prints it.