错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Component Libraries

  • Peter Himschoot

摘要

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!