I have a button, this is called game
. When this is clicked, routing is triggered and you are redirected to localhost:3000/game
. However, I do not want to be redirected to a new page, but to a new React app. This app is in a different folder and was regenerated with npx create-react-app game
. Is there an option to go to the new React app with this button click? The React app does not need to be started but only opened.
So when I click the button in my localhost:3000
the React App Game should open with the routing e.g. localhost:4000/game
. Later, both React apps run on the same domain, for example, my-react-app.com
and my-react-app.com/game
Is there such a thing? If so, how can I create it? Haven't found anything so far.