How can I solve routing issues in an embedded app UI?

souravonebox
Visitor
1 0 0

I was trying to build an embedded app using shopify CLI.

it created an app and it's working fine and by default it renders index.js file pages/ folder.

i created one file screen1.js inside pages/ folder. and added a button in index.js

now i want to render the screen1.js on clicking the button in index.js
i tried 

https://shopify.dev/apps/tools/app-bridge/react-components/route-propagator  > <RoutePropagator />

it's giving me import issue on BrowserRouter , as it's not exported from "react-router"

also tried 

https://shopify.dev/apps/tools/app-bridge/react-components/client-router 

same issue i'm facing.

is there anything i'm missing or there is any another way?

Reply 1 (1)

cmackie
Tourist
4 0 0

Did you figure anything out?