Check out example codes for "router navbar vue". It will help you in understanding the concepts better.

Code Example 1

//the links of the navbar must use :
<router-link to="/[route-name]">[Navbar-link-Name] <router-link>
//use this instead of <a></a>, so the routing can work

Learn ReactJs, React Native from akashmittal.com