Course Content
Introduction to React
Introduction to React
Introduction to React Router
React Router is a tool that helps us easily set up different URL routes and link components/pages to them in our React application.
To install react-router we cd
into the project directory and install the react-router-dom
package:
Following is an example of a simple application made in React Router: example.
You can see how different components are rendered based on different URLs:
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/118c2a49-583d-43eb-a9df-07bc65025c91/s.6+ch.1+pict1.png?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/118c2a49-583d-43eb-a9df-07bc65025c91/s.6+ch.1+pict2.png?w=3840&q=75)
![carousel-img](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/118c2a49-583d-43eb-a9df-07bc65025c91/s.6+ch.1+pict3.png?w=3840&q=75)
Everything was clear?