You can use dotnet watch and observe the result of code changes instantly on the browser!
dotnet watch
//Wrong <div> @for(int i=1; i<=10; i++) <span>hello</span> </div>
@page <div> @for(int i=1; i<=10; i++){ <span>hello</span> } </div>
Or this, without the div tag and using para tag
@page @for (int i = 1; i <= 10; i++) { <p>hello</p> }
Last updated 2 years ago