Learning React Router DOM for Multi-Page Apps

Day 38 of My Web Development Journey ⚛️ Today I learned how navigation works in React apps using React Router DOM Now my apps are starting to feel like real multi-page applications What I worked on today: • Installed react-router-dom • Understood client-side routing (CSR) • Set up routing using BrowserRouter • Created multiple routes using Routes & Route • Implemented navigation using Link Core Concepts 💡 🔹 BrowserRouter → Enables routing in the app 🔹 Routes → Holds all routes 🔹 Route → Maps path to component 🔹 Link → Navigate without page reload 📌 Key Learning: 👉 React apps don’t reload pages like traditional websites 👉 Only the required component updates This makes apps: ⚡ Faster ⚡ Smoother ⚡ More user-friendly Important Realization 🚀 Using <a> tag = full page reload ❌ Using <Link> = smooth navigation ✅ Big Upgrade 🔥 Earlier: 👉 Single page, reload again & again Now: 👉 Multiple pages, no reload, SPA experience 😎 Frontend is getting more real every day 💯 Day 38 #ReactJS #JavaScript #FrontendDevelopment #ReactRouter #SheriyansCodingSchool #CodingJourney #BuildInPublic #WebDevelopment

To view or add a comment, sign in

Explore content categories