DEV Community

Cover image for Today I learned React Router and My brain hurts (In a good way )
Asad Zaman
Asad Zaman

Posted on

Today I learned React Router and My brain hurts (In a good way )

As it was a part of my bootcamp, I didn't had any clue what the heck it was. But by time while learning I felt it's importance.
I am listing all the learnings (I know you might get bored, but I will try my best to make you feel less bore)

I learned
-How to navigate through page to page with react router
-Learned the usage of Link and NavLink, nested routing, outlet.
-Also learned how to load data using react router components: Loader and loadUserData.
-Learned to create dynamic path and rendering dynamic path.
-Explored dynamic route, params and load data based on dynamic route.
-Learned the usage of useNavigate and useNavigator(),
-Tried to load data in the component without route
-learned to add 404 Not found (Most crucial, because someone going to break it for sure 😅).
-Explored useLocation hook.

I learned a lot. Honestly, I feel more happier being productive than being lazy and relaxed.

Top comments (0)