Okay, I hope you know understand the use of routing in SPA. Since we are in the world of SPA, the routing helps us to display some template and hide another template based on the route. In the early development of web applications, whenever a user clicks on a new page link, then the client side of the browser sends data to server and grabs a particular html file related to the link and reloads the page which takes time.īut with implementation of SPA, user only has one index.html file and whenever user clicks on a new link, the data re-renders on the same page without grabbing the entire new html file. React is a javascript framework that is developed and maintained by Facebook by providing single page applications. In this post, I will talk about routing using react-router-dom in the react applications.īut, first, question arises, Why do we need to use routing in react ? And maybe you don't know what is React ?
0 Comments
Leave a Reply. |