1👍
The proper way to accomplish this is in the same way as you do it using vanilla javascript or some library like jQuery.
You don’t manage a state
in the front end, you grab the state server side and you put it in the HTML and then you use it with javascript.
React.js isn’t different and if you’re using redux you could put that data directly in the initial state of every page/section of your whole webpage.
0👍
<>
Yes. But in order to share in the way you imagine, you do have to make your app single paged. That is, you don’t link around to different URL’s. Any view change would change at most the #anchor part of the URL, but needn’t do anything to the URL – just use Javascript logic to change what component(s) get rendered. As long as the base part of your URL stays on the same page, your shared objects will stick around.