How to Setup React Router v5 using React Hooks

Publié le: 11 avril 2020
sur la chaîne: React with Masoud
1,296
15

More tutorials:    / @reactwithmasoud  
For today's episode, I chose React Router V5 for our tutorial topic. We will dig into it and see how to configure it using Hooks to have a flexible and powerful routing system in our ReactJs apps. I believe this library is the best for routing in React but if you know a better one please share in comments.

By watching this video, you will learn how to install react-router-dom library and define your routes inside app.js file. You will see how to define required or optional parameters for each route and read the value in the component from useParams function. Finally, I will talk about how to show the page not found error to the user if the inserted route was not matched.

Hope you enjoy the video. Please subscribe to my channel and share your thoughts in the comment section.

Project source code repository: https://github.com/mdeveloper20/react...
My weblog: http://pezeshkzade.com/blog


Sur cette page du site, vous pouvez voir la vidéo en ligne How to Setup React Router v5 using React Hooks durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur React with Masoud 11 avril 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,296 fois et il a aimé 15 téléspectateurs. Bon visionnage!