Using React Routing in the Looker Extension Framework

@izzymiller

Hello! 

We have been using your Looker Extension Framework on github to design our company’s Looker Interface: https://github.com/looker-open-source/extension-template-react

The website looks great so far thanks to your template :). We want to use React Router (imported from react-router-dom) to control our page transitions, however we are running into some issues with getting the transitions to work. Our goal is to render another javascript file when a certain button is clicked on the homepage. 

The BrowserRouter seems to be changing the path of the website, but the contents that we would like to render aren’t being rendered. This is the precise problem that we are encountering (CANNOT GET \path):

https://ui.dev/react-router-cannot-get-url-refresh/

I have a hunch that this is because server-side routing has not been set up on the looker extension template. We were wondering if you could provide some guidance on how we can set up server-side routing to handle our transitions. 

Thank you!

0 1 477