React Router: Let’s unwind another mystery in React

   2021-02-25       10        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

We Buy Old Properties | Sell a House
We Buy Old Properties | Sell a House..
   2021-02-24       13        Business
Best Driving Tips (Ontario, London)
Best Driving Tips (Ontario, London)..
   2019-09-13       42        Education
Mobile Health (mHealth) Market Future Growth with Technology and Outlook
Mobile Health (mHealth) Market Future Growth ..
   2020-07-24       22        Health
How to Buy, Sell, and Trade Tether (USDT) in India?
How to Buy, Sell, and Trade Tether (USDT) in ..
   2021-05-07       3        Finance
Best Travel Agency In Delhi NCR
Best Travel Agency In Delhi NCR..
   2020-12-28       15        Travel
Preschools in Anna Nagar Chennai
Preschools in Anna Nagar Chennai..
   2020-01-09       44        Agriculture
Check out European facials San Diego @ Kissandmakeupnow.com
Check out European facials San Diego @ Kissan..
   2019-06-24       85        Business
Dapatkan CashBack Rebate 1.5 Pips InstaForex Register InstaForex disini
Dapatkan CashBack Rebate 1.5 Pips InstaForex ..
   2019-08-09       86        Finance
Digital Marketing Agency
Digital Marketing Agency..
   2019-06-28       121        Services
SCADA Market 2021: Research Depth Study and Gross Margin Analysis 2023
SCADA Market 2021: Research Depth Study and G..
   2021-02-07       15        Business
Prep for financial independence this Independence Day: COVID-19 Edition
Prep for financial independence this Independ..
   2020-07-03       26        Finance
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 : 12482
zero promosi
zero1601@gmail.com
Total Posts : 1774