What is client-side routing and how is it used?

前端 未结 2 1049
清酒与你
清酒与你 2020-12-13 11:14

I will be glad if someone could answer the following questions

  1. How does it work?
  2. Why is it necessary?
  3. What does it improve?
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 11:55

    I was trying to build a Single page application and came to know about client side routing.

    By implementing client side routing I was able to achieve the following

    1. The front and back buttons in the browser started working for my single page JavaScript application. This was very important while accessing the page from a mobile browser.
    2. The user was able to Bookmark/share a URL which was not possible earlier.

提交回复
热议问题