Separate UI and Code in Blazor

Blazor apps consist of one or more components. Components reside in .razor files and consist of UI markup and C# code. When you create a new Blazor server or WebAssembly project it stores component UI and code in a single file. However, at times this single file approach might not be adequate. Luckily, you can separate your UI markup and C# code easily. This article shows how.

http://www.binaryintellect.net/articles/1d0f13a9-5f92-4876-9fe8-34b3da72c575.aspx