TertiaryNav component usage

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?

I was able to get this resolved by updating the local-components npm module, so I’m good to go.

1 Like

This is so cool! I tried to install this add-on, but I received an error when visiting the Log Viewer nav item.

1 Like

It’s still a work in progress. :slight_smile: I’m hoping to have it wrapped up this week. Here’s a screenshot on my local Local.