3-Year BCA Degree Practical Structure: A 3-year degree has 6 Semesters. Each semester has 60 practical lab days (15 weeks × 4 lab classes/week). 6 Semesters × 60 Days = 360 Total Practical Coding Days across your entire 3-year degree.
Sem 1 PracticalActive
0 / 60 Days
3-Yr Total: 0 / 360 Labs
Sem 1 Sprints
0% done
Sprint 1 (Days 1–30)
GitHub Repos
0 verified
Portfolio Pushes
Active Day
Day 1
Current Target
Semester 1 Practical Progress (Days 1–60)0 of 60 Days (0%)
Next Up: Day 1: HTML Setup & First WebpageContinue
💻
Computer Competency Test (CBT)100 MCQs
Windows OS • Linux • MS Office • Networking • Git • Web Tech
Not Attempted Yet
Test your technical fundamentals with our standard 90-minute Computer-Based Assessment. Submitting your test will automatically certify and link your official score to this student profile!
In traditional websites, navigating between pages requires the browser to reload the entire HTML page. Modern React applications are built as Single Page Applications (SPAs). They load the page once, and then swap out components dynamically when the URL changes.
To handle page transitions without reloading the page, we use a routing library like React Router or Next.js Routing.
Nextsem Academy
Lesson: p4-7-routing
Slide 1 / 5
P4.7: React Routing
In traditional websites, navigating between pages requires the browser to reload the entire HTML page. Modern React applications are built as Single Page Applications (SPAs). They load the page once, and then swap out components dynamically when the URL changes.
To handle page transitions without reloading the page, we use a routing library like React Router or Next.js Routing.
Slide 2 / 5
1. Traditional vs Client-Side Routing
Traditional Routing: User clicks link -> Browser requests new page -> Server returns HTML -> Full page refresh (slow, white flash).
Client-Side Routing: User clicks link -> React intercept click -> Updates the URL -> Swaps out matching component dynamically (instant, smooth).
Client-Side Routing Speed Increase
Load times (ms) for sub-page transitions.
Slide 3 / 5
2. Using React Router Components
React Router provides three core components to handle client-side routing:
1. BrowserRouter
Wraps your entire application to enable URL tracking.
2. Routes & Route
Defines the mapping between URL paths and React components.
Example
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Home from './Home';
import About from './About';
function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
</Routes>
</BrowserRouter>
);
}
Interactive Code
3. Link instead of <a>
Always use the <Link> component for internal navigation. Standard <a href="..."> anchor tags will trigger a full browser page reload, defeating the purpose of an SPA!
Example
import { Link } from 'react-router-dom';
// ❌ WRONG (Triggers full reload)
<a href="/about">About Us</a>
// RIGHT (Client-side routing)
<Link to="/about">About Us</Link>
Interactive Code
Slide 4 / 5
3. Reading Dynamic Parameters
You can capture values from the URL (like user IDs or chapter names) by declaring a wildcard path: