Skip to content

This is an React application example includes router, protected router in React-router v6.

Notifications You must be signed in to change notification settings

EsranurGalipKayahan/Routing-examples-in-React-Router-v6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Router v6 Example

In react router v6, there are many changes comparing with v5. The React Router example which is covered in this video, The React Router with hooks covered in this video and The Protected Routes covered in this video are implemented by using older versions. In this project, this three videos are combined and implemented in v6 of react-router-dom covering useNavigate, useLocation, useParams, Routes , etc...

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

This is an React application example includes router, protected router in React-router v6.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published