Warning
Always work on your own forked repository. Do NOT create pull requests against the original Code-the-Dream-School repository.
This repository contains exercises for Code the Dream's 11-lesson Introduction to React. Each lesson builds upon previous concepts, covering everything from basic React fundamentals to advanced topics like routing and deployment. Students will work through structured exercises that reinforce core React development skills and best practices.
- Fork and clone locally: Fork this repository to your GitHub account, then clone your fork to your local machine
- Install dependencies: Run
npm installto install all required packages
src/exercises/- Contains directories for each lesson's assignments and instructionssrc/private/- Application framework code (do not modify)src/tests/- Test files for validating your work (do not modify)
Run npm run dev to start the development server. The application displays a navigation interface where you can select each lessons's exercise. After navigating, page shows your code outputs using a studentWork.jsx associated with that lesson's directory. For example, if you select lesson-03, the output that is displayed resides in src/exercises/lesson-03/studentWork.jsx. Depending on the exercise scenario, it may initially render with an error.
Warning
Always work on your own forked repository. Do NOT create pull requests against the original Code-the-Dream-School repository.
-
Version Control Setup
- Merge previous lesson's approved pull request into main branch
- Create new lesson branch from main
-
Read Instructions
- Navigate to
src/exercises/lesson-[XX]/instructions.md - Review the lesson's learning objectives and requirements
- Navigate to
-
Complete Exercises
- Open
src/exercises/lesson-[XX]/studentWork.jsx - Follow instructions to implement required functionality
- Test your work using
npm run dev
- Open
-
Commit and Publish
- Stage and commit your changes with descriptive message
- Push your branch to your fork
-
Create Pull Request
- Open a PR from your branch to your fork's main branch
- Copy the PR URL for submission
✅ Correct PR link format:
https://github.com/your-username/react-curriculum-v4-exercises/pull/1
❌ Incorrect link format:
https://github.com/your-username/react-curriculum-v4-exercises (repository link)
https://github.com/your-username/react-curriculum-v4-exercises/tree/exercise-lesson01 (branch link)
This project includes ESLint and Prettier to help maintain consistent code quality and formatting. We strongly recommend installing the VS Code extensions for the best development experience.
-
ESLint Extension
- Search for "ESLint" in VS Code Extensions marketplace
- Install the official ESLint extension by Microsoft
- Provides real-time linting and error highlighting
-
Prettier Extension
- Search for "Prettier - Code formatter" in VS Code Extensions marketplace
- Install the official Prettier extension
- Enables automatic code formatting on save
- ESLint: Run
npm run lintto check for code quality issues - Prettier: Your code will be automatically formatted when you save files (if extension is installed)
- Both tools are pre-configured for this project and will help you write cleaner, more consistent React code