![]() The downside to not using hash history in these lessons, where we're not really going to go into setting up your server, is that when we jump to a path like /about and reload, we're not going to get that path. Then the single page application will take care of the routing. ![]() ![]() Generally speaking, that means in an express application, you're just going to return index HTML every single time a URL is called. In order to use this, though, you're going to need to set up your server to always return your application at any route. If I reload over here, we can see that, rather than getting the hashtag path, we'll just get a very clean /about and /contact. In production, what we want to use is something called browser history. We're looking at our standard, three page, single page application, and we're using hash history to keep track of the URL history in our router.
0 Comments
Leave a Reply. |