Last active
November 16, 2021 02:17
-
-
Save techomoro/d51cc536d256b8cf8dc3b233fa860584 to your computer and use it in GitHub Desktop.
Use ` instead of '
class={`nav-item ${
props.location.pathname === "/" ? "active" : ""
}`}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got an error at class={'nav-item ${ props.location.pathname==="/"? "active": ""}'}.error is expected javascript identifier.please help to solve my error