Component Libraries
摘要
Components should be reusable. But you don’t want to reuse a component between projects by copy-pasting the component between them. In this case, it is much better to build a _component library_, and as you will see, this is not hard at all! By putting your Blazor components into a component library, you can include it into different Blazor projects, use it both for Client-Side Blazor and Server-Side Blazor, and even publish it as a _NuGet_ package!