This code will help you to understand how to consume a Blazor component library.
You can consume a library in either of two ways:
If the MyComponentLib is the component library and MyComponent is the component name, those are consumed like in the following.
Option1:
<h1>Hello, world!</h1> Welcome to your new app. <MyComponentLib.MyComponent />
Option2:
@using MyComponent <h1>Hello, world!</h1> Welcome to your new app. <MyComponent />
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
You can consume a library in either of two ways:
If the MyComponentLib is the component library and MyComponent is the component name, those are consumed like in the following.
Option1:
Option2:
need an explanation for this answer? contact us directly to get an explanation for this answer