diff --git a/src/components/Header.js b/src/components/Header.js index 02aea35..aba097f 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -3,15 +3,19 @@ import Navbar from "react-bootstrap/Navbar" import Nav from "react-bootstrap/Nav" export function Header ( props ) { - return ( + // props.items is the value of nav state in App.js + // create a collection of navigation items + const Links = props.items.map( (item, itemkey) => { +return ( + {item.label} +) + } ) + return ( + App )