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

Function Navbar

Video 118/src/components/Navbar.jsx:4–12  ·  view source on GitHub ↗
({adjective, getAdjective})

Source from the content-addressed store, hash-verified

2import { memo } from 'react'
3
4const Navbar = ({adjective, getAdjective}) => {
5 console.log("Navbar is rendered")
6 return (
7 <div>
8 I am a {adjective} Navbar
9 <button onClick={()=>{getAdjective()}}>{getAdjective()}</button>
10 </div>
11 )
12}
13
14export default memo(Navbar)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected