React Full Stack E-Commerce [ በአማርኛ ] | Lesson 6: Dynamic Routing & Product Details
**Build a Dynamic Product Detail Page with React Router & useParams [ በአማርኛ ]**
In Lesson 6 of our **React Full-Stack E-Commerce series**, we master **Dynamic Routing** and build a functional **Product Detail Page**. You will learn how to use the `useParams` hook from React Router to identify specific products and fetch their data dynamically from an API.
**What you will learn in this tutorial:**
✅ Setting up dynamic routes in App.js
✅ Using the `useParams` hook to get IDs from the URL
✅ Creating a reusable Product Service for fetching data by ID
✅ Conditional rendering for “In Stock” vs “Out of Stock”
✅ Professional styling with CSS Modules for detail pages
**🚀 Watch the Full Series (Playlist):**
[React Full-Stack E-Commerce From Scratch Playlist](https://www.youtube.com/playlist?list=PL1wMmwENJNELLsg_J9j5WBZ0Ai-Qft3sY)
**⏮️ Previous Lessons:**
* [Lesson 5: Fetch Products with Axios & Display Product List](https://studio.youtube.com/video/bXV4TWngsIg)
* [Lesson 4: Data Fetching & Product Display](https://studio.youtube.com/video/zLfVRkr7KtU)
* [Lesson 3: React Router & Page Navigation](https://studio.youtube.com/video/Cp7wFJzicL4)
**💻 Resources & Source Code:**
* **GitHub (Official Code Repository):** [Beshilo Coding Academy GitHub](https://github.com/Haile1221/reactJS-Full-Course)
* **Teaching Materials:** [Google Slides Presentation](https://docs.google.com/presentation/d/1yU6DmMX0GNT3YMamEF1CND3-Oh2N_qdDaBLMKZG_uQ0/edit)
**📱 Connect with Beshilo Coding Academy:**
* **Telegram (Tech Community):** [Beshilo Coding Academy Telegram](https://t.me/beshilocodingacademy)
* **Subscribe for More:** [Beshilo Coding Academy YouTube](https://www.youtube.com/channel/UCEY6mPRCSw6zQWyhnUxbmEg)
#ReactJS #AmharicCoding #WebDevelopment #ReactRouter #FullStack #EcommerceTutorial #BeshiloCodingAcademy #useParams #EthiopiaTech
00:00 – Introduction & Project Demo
01:09 – What is Dynamic Routing? (The “Why”)
01:42 – Creating the Product Detail Page Component
02:10 – Setting up Dynamic Routes in App.js
03:10 – Connecting Product Cards to Detail Pages
04:27 – Why React Uses IDs for Tracking
04:57 – Building the Product Service Fetch Logic
06:10 – Implementing UseEffect & Data Fetching
07:28 – Error Handling with Try-Catch Blocks
09:25 – How to Use the useParams Hook
10:10 – Handling “Product Not Found” States
11:15 – Displaying Product Title and Images
13:10 – Professional Styling with CSS Modules
14:41 – Adding Ratings and Descriptions
15:55 – Advanced Stock Logic Implementation
18:35 – Creating the “Buy Now” & “Add to Cart” Actions
20:13 – Final Summary & Code Review
22:18 – What’s Coming Next: Search & Filters









