MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / Navbar

Function Navbar

Video 115/src/components/Navbar.jsx:4–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { NavLink } from 'react-router-dom'
3
4const Navbar = () => {
5
6 return (
7 <div>
8 <nav>
9 <NavLink className={(e)=>{return e.isActive?"red": "" }} to="/"><li>Home</li></NavLink>
10 <NavLink className={(e)=>{return e.isActive?"red": "" }} to="/about"><li>About</li></NavLink>
11 <NavLink className={(e)=>{return e.isActive?"red": "" }} to="/login"><li>Login</li></NavLink>
12 </nav>
13 </div>
14 )
15}
16
17export default Navbar

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected