README.md
md2 kBIn Exam.zip
React Mock Exam Template
This is a mock exam template based on React Tutorial Chapters 01-09.
Topics Covered
- Chapter 1: Introduction to React
- Chapter 2: Getting Started
- Chapter 3: JSX
- Chapter 4: Components
- Chapter 5: Props
- Chapter 6: State
- Chapter 7: Hooks (useState)
- Chapter 8: Events
- Chapter 9: Forms
Setup Instructions
-
Install Dependencies
npm install -
Start Development Server
npm run dev -
Open Browser
- The app will open at
http://localhost:5173
- The app will open at
Project Structure
React_Mock_Exam/
├── exam.md # Exam questions
├── package.json # Dependencies
├── vite.config.js # Vite configuration
├── index.html # HTML entry point
├── src/
│ ├── main.jsx # React entry point
│ ├── App.jsx # Main App component (template)
│ ├── App.css # App styles
│ └── index.css # Global styles
└── README.md # This file
How to Use
- Add your information: Add your Student ID and Full Name as comments at the top of
src/App.jsx - Read the questions in
exam.md - Implement your solutions by modifying the template in
src/App.jsxor create separate component files insrc/ - Test your solutions in the browser using
npm run dev - Make sure your code follows React best practices
Submission
- Compress the entire
React_Mock_Examfolder (includingnode_modules) - Name the file:
[YourStudentID]_React_Exam.zip - Upload to the URL provided during the exam
Dependencies
- React 18.2.0 - React library
- React DOM 18.2.0 - React DOM rendering
- Vite 5.0.8 - Build tool and dev server
- @vitejs/plugin-react 4.2.1 - Vite plugin for React
Available Scripts
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build
Notes
- This template provides a basic structure to get you started
- You can create additional component files in the
srcfolder as needed - Focus on clean, readable code and React best practices
- Make sure to test your solutions before submitting
Good luck! 🍀