WP LAB Exercise-14
WP LAB Exercise-14
Project - 1
Small Project: Student Management System
Concepts Covered: JSX, Components, Props, State (useState), Event Handling, Lists,
Forms, React Router (for navigation)
📂 Project Structure
📦 student-management
┣ 📂 src
┃ ┣ 📂 components
┃ ┃ ┣ 📜 StudentList.js
┃ ┃ ┣ 📜 StudentForm.js
┃ ┃ ┣ 📜 StudentDetails.js
┃ ┣ 📜 App.js
┃ ┣ 📜 index.js
┣ 📜 package.json
┣ 📜 README.md
Modules to Implement
💡 Hints:
💡 Hints:
• Use controlled inputs with useState.
• On form submission, update the student list.
• Prevent empty form submissions using trim().
💡 Hints:
Optional Enhancements
✅ Delete a Student – Add a delete button to remove students from the list.
✅ Edit Student Information – Allow users to update details.
✅ Local Storage Integration – Save data so it persists after page refresh.
✅ Styled Components – Use inline styles or CSS modules for better UI.
Project - 2
Concepts Covered: JSX, Components, Props, State (useState), Event Handling, Lists,
Forms, React Router, Conditional Rendering
📂 Project Structure
📦 online-bookstore
┣ 📂 src
┃ ┣ 📂 components
┃ ┃ ┣ 📜 BookList.js
┃ ┃ ┣ 📜 BookDetails.js
┃ ┃ ┣ 📜 AddBook.js
┃ ┣ 📜 App.js
┃ ┣ 📜 index.js
┣ 📜 package.json
┣ 📜 README.md
Modules to Implement
💡 Hints:
💡 Hints:
• Create a form with inputs for title, author, price, and description.
• Add a "Submit" button to update the book list.
💡 Hints:
Optional Enhancements