![]() So when we implement routing in react then each of these component can have separate individual urls like /about-us, /home, /contact-us. ![]() But when our react web application has routing enabled then different functionality can have different url.Įxample: Every website use to have home, contact us and about us component. In React, our web application will have one root url/address which will give expose all pages/functionality for our app. yah you are correct when we talk in a general sense both are the same but when we talk about React it’s different. Now you will be thinking about how it is different from anchor tag. Routing is capability of web application to load different component/pages whenever a link is clicked. ![]() Creating Home, About Us And Contact us components.How our project structure will look like.
0 Comments
Leave a Reply. |