visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.67k stars 687 forks source link

QUESTION: anyone can explain this #424

Closed vickenliu closed 6 years ago

vickenliu commented 6 years ago

Hi , from the project's examples, if i hit this url http://localhost:4000/server/contact, the backend returns the related html, and when the browser renders the html, is page.js also do the front-end routing like here it knows to show the contact view, not the default index. thanks for explaination.

matthewp commented 6 years ago

Yes, that's right, when page.js first loads it will start by loading the route that is represented by the current URL. Hope that answers your question! :)