React Router: Let’s unwind another mystery in React

   2021-02-25       31        Technology
Rating :
React router React is a pretty vast library with rich inbuilt components and APIs available to ease the developer’s life

Open the application in any code editor and If you will see inside the public folder, there will a file named as index.html.

 

A crucial point to notice here is that we have only one HTML file which implies that currently, we have a single-page app.

 

Here we are reusing this single HTML page for the rendering of multiple components using routing.

 

To start the dive first install react router in your application using below command.

 

npm install react-router-dom

 

weird huh ?? why the command has react-router-dom if I have to install something called as react-router because react router is the core library which includes everything related to routing or navigation.


And here we only need react-router-dom to understand and manage the routing in our application.

react-router-native will be required for handling the routing on native-mobile applications.

react-router-redux is required for binding of your react-application with the redux library i.e when you want to manage your routing using redux. Ideally, it is avoided.

S""

Author Signature :


my name is sasi kiran

100x100
sasi kiran

CronJ is a leading React JS Development Company based in the USA, Bangalore, India, New York, UK developing and offering the best platform for ReactJS development services. We have a professional and ..


Random Articles

Chennai     To    Shirdi    Flight Pakcage
Chennai To Shirdi Flight Pakcage..
   2019-07-29       112        Agriculture
Trust Online Medicine Stores For Good Sleeping Pills UK
Trust Online Medicine Stores For Good Sleepin..
   2021-11-11       25        Health
Marine engineering courses
Marine engineering courses..
   2020-08-08       56        Education
How Can Cosmetic Dentistry Improve Your Smile and Health?
How Can Cosmetic Dentistry Improve Your Smile..
   2019-03-14       137        Health
quickbooks customer service phone number
quickbooks customer service phone number..
   2019-07-25       127        Business
 Best Pest Control Service in Brampton for Milton
Best Pest Control Service in Brampton for Mi..
   2021-06-27       22        Services
Place to Rent for Party | Party Hall in Bangalore | The Tamarind Tree
Place to Rent for Party | Party Hall in Banga..
   2021-01-13       39        Business
Global Cell Culture Sampling Device Market
Global Cell Culture Sampling Device Market ..
   2019-07-22       133        Business
What are the benefits of milk thistle capsules?
What are the benefits of milk thistle capsule..
   2021-07-15       18        Business
	 Video Editor application
Video Editor application..
   2020-07-08       47        Technology
ABOUT US

Some quick example text to build on the card title and make up the bulk of the card's content Some quick example text to build on the card title and make up the bulk of the card's content Some quick example text to build on the card title and make up the bulk of the card's content.

TOP AUTHORS
Thomas Shaw
thomasshaw9688@gmail.com
Total Posts : 13792
zero promosi
zero1601@gmail.com
Total Posts : 2256