...

/

Marking Links as Active

Marking Links as Active

In this lesson, we will discuss how to mark links as active using active class.

In many cases, the built-in method we discussed before is totally fine. The <a> tags, rendered by LinkTo, have an active class, and the tag is styled with CSS to highlight it as active. However, in other cases, this is not flexible enough. What if it’s not the a tag that should have the active class? Or, what if the project uses a utility-first approach and the elements are not styled via custom class names?

In our app, ...

Access this course and 1400+ top-rated courses and projects.