BFE.dev
Front-End Interview Questions81. How does client-side routing work?

81. How does client-side routing work?

WebAPI
Share

If you have used react-router before, you must know there are 3 kinds of router,

  1. BrowserRouter
  2. HashRouter
  3. MemoryRouter

What is the difference of them ? How did they work ?

To best understand this, you are suggested to write your own client-side router, with

  1. pushState and popstate event

  2. onhashchange

prevnext
Request SolutionAIPosts(4)