Boosting React Routing Skills Day 40-41

Day 40–41 of My Web Development Journey ⚛️ These two days were all about taking my React Routing skills to the next level 🚀 Now it’s not just navigation… it’s programmatic control + modern routing + better UX 😤🔥 What I worked on: 🔹 useNavigate() (Programmatic Navigation) • Redirect users after login/logout • Navigate using logic instead of clicks • Used navigate("/dashboard") Real-world use case unlocked 🔥 Outlet (Nested Routing) • Used <Outlet /> to render child routes • Understood layout-based routing • Built structure like dashboard → profile/settings createBrowserRouter (Modern Routing ⚡) • Learned new object-based routing system • Cleaner and scalable approach • Used with <RouterProvider /> This is how modern React apps are built NavLink (Active Links 🎯) • Styled active routes automatically • Used isActive for dynamic styling • Perfect for navbars Key Learning 💡 Routing is not just about moving between pages It’s about controlling flow, structure, and user experience Big Realization 🚀 Earlier: Basic navigation using Link Now: Programmatic routing + nested layouts + active states Frontend is getting more real every day 💯 Day 40–41 #ReactJS #JavaScript #FrontendDevelopment #ReactRouter #SheriyansCodingSchool #CodingJourney #BuildInPublic #WebDevelopment

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories