by onion2k · 6y ago · 0 comments
It'd work fine if the developer used the URL to maintain state with React Router's BrowserRouter or HashRouter.
These days it would be a bit unusual to use routing to store the game state admittedly but that's why it's good to have older devs like 43-year-old me on the team. I actually think about these sorts of details rather than using the defaults.
It's also worth noting that storing the state in the URL shouldn't be the default. Being able to see the state by reading the address bar would be a security issue for most apps.
There is no spoon.