({adjective, getAdjective})
| 2 | import { memo } from 'react' |
| 3 | |
| 4 | const 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 | |
| 14 | export default memo(Navbar) |
nothing calls this directly
no outgoing calls
no test coverage detected