We now need to write the React component that connects all the preceding components together. You are probably thinking that we already wrote the navigation menu—shouldn't that link everything together? The simple answer is: not yet. In the navigation menu component, we made use of links to point to other pages. However, we did not connect those links to actual react components; the /about link needs to connect to the About React component, the /myorders link needs to connect to the OrderContainer React component, and so on.
We used a React component called NavLink in order to create our links. NavLink was obtained from the react-router-dom package, which we installed in the The navigational menu section. ...