Managing URL parameters as state in React
Since URL parameters can be regarded as a portion of an app’s state, it’s reasonable to try to handle them in the React way of handling state: similarly to useState(). From this perspective, here’s what handling the URL params state of, let’s say, the root URL / would look like: export const App = ()…