I am now learning Redux and React, and I am writing a hobby project that works like this.
The project is a search service that searches with tags. User can add or remove tags in the UI. In the code, the tags are represented in the Redux state, and adding and removing the tags happens via separate actions. So far so good, and I have a toy code that works.
Now I want to somehow "bind" the tags with the part of URL that comes after hash; for example, serialize the tags, separated by dash; so that user can copy/paste the URL and have the same tags.
I cannot find how to do that easily.
I am always hitting something called "react router", but all I see in the examples is always having more enter points to the app and showing user different parts of app according to the hash. I don't want that. So I don't know if I actually need this router; I don't want to route anything.
And even if I want this, I can't find how to bind the Redux state with the URL. I don't want to inject the tags directly to the props of the components; I want the tags from the url in the Redux state.
It feels like I am doing something wrong and I need to rethink my overall design, but I don't know where to start.
(I did not add any actual code, since I think it's more general question about app design, but I can simplify my toy code later and paste it here)