3 ms·
How to use this in React?
by TedDoesntTalk 4y ago
How to use this in React?
- no_wizard 4y agoI don't think React has anything to do with it. Its just structuring URLs in the browser an appropriate way. You'd need to read state off the url fragment (location.hash). You can feed that into your appropriate state management system, I suppose. Some (like react router) I think support hash routing, but I don't know that they support both has routing and history routing at the same time, so that may not be quite up to task if thats the case.