I’m still pretty new to React, so apologies for this basic implementation question.
I’m trying to create an add-on that uses the TertiaryNav and TertiaryNavItem components using the sample code provided - https://github.com/pixeljar/local-addon-log-viewer/blob/master/src/helpers/siteInfoLogViewer.tsx
When I load in this component, I get the following error - Invariant Violation: You should not use <Route> or withRouter() outside a <Router>
.
Is there a special way that I need to use this component?