What is React.js library??
React.js is a JavaScript library. We use react.js library to develop a website. But we develop a website with vanilla JavaScript. So, why we use React.js. We use React.js library to create a website with easily and to provide a better user performance. Some kinds of things to do with vanilla JavaScript are not so much easy. For that reason , Web Developer use React.js library to make a Website with so much easy and with short time.
How can we build a website with React.js library??
When we think about a website that time we can think a website means various kinds data. Means various kinds of data we have to show on websites or web pages. This all kinds of data are shown on website various kinds way. In React.js Website we show data with Component , props (It is so called property), and various kinds of Hooks. There are so many hooks . Every hook is used with some specific purpose. During making a website with React.js at first we install this library. After that we make component . And we show various kinds data on these component with props. Some time we pass these props from one component to another component. And some time we use React Context API to pass these data from one component to another component . React Context API is a system to pass data from one component to another component. It allows us to pass data with so much easy way. And besides , React is a single page library . If we make a website with single page library , it would be so fast . Means it render so fast . Means , the data appears with so fast on Websites front page. So when user use this kinds of library they feel so much comfortable. But , when we make a website , we need various kinds of pages . So, to solve this particular problem we use a library. The library name is React Router Dom. I am discussing broadly about this library below section.
What is React Router Dom??
With simple words React Router Dom is library. We use this library in Single Page Application to create several pages. The library allows us to create multi pages in website which website is made with React.js .This library provide us some system to create more than one page. If you start learning React Router Dom , you can understand more about this library. For that reason, you can go through some articles where is discussed about this library with example.