ORGANIZE VIEWS INTO COMPONENTS
ORGANIZE VIEWS INTO COMPONENTS CREATE CUSTOM HELPER TAGS Creating a component is important because then we can reuse that logic in the Views that make up the application. We will have created something that is testable in isolation, in fact as we will see we can create automated tests to prove that each of our components works. Let's see how to write the Tag Helper containing the rating star logic. There are conventions to follow, the component being named RatingTagHelper, in the View Razor the tag will be rating. When [...]