# web-module-project-class-components
**Repository Path**: mirrors_LambdaSchool/web-module-project-class-components
## Basic Information
- **Project Name**: web-module-project-class-components
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-01-14
- **Last Updated**: 2025-12-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Class Based Components - React Todo
We are going to practice building class components with this project. Even though function components and hooks have become the standard among React developers, class components are going to be around for a long time. It's important that you get used to class components, and feel comfortable working with them since you'll most likely encounter them when you are hired to work on a React app.
## Skills You Will Practice
- Creating class-components from scratch
- Storing state in the top-level component, and sharing it with descendant components via props
- Handling form-related events like `change` and `submit`
## Introduction
In this project you will build an application that allows for todos to be added, completed and removed from view. This application should:
- Use [this gif](./todo.gif) as inspiration for building the DOM.
- Hold all todos in state within the `App.js` component. This slice of state should look like the following:
```js
[
{
name: 'Organize Garage',
id: 1528817077286, // could look different, you could use a timestamp to generate it
completed: false
},
{
name: 'Bake Cookies',
id: 1528817084358,
completed: false
}
]
```
- Allow for a todo's "completed" status to be toggled when clicking on an item.
- Allow for a todo to be added when submitting the todo form component.
- Allow for completed todos to be filtered out when clicking the clear completed button.
## Instructions
### Task 1: Project Set Up
- Fork, clone, and `npm install`.
- Launch the project on a development server executing `npm run dev`.
- Visit your widget by navigating to `http://localhost:3000` with Chrome.
### Task 2: Project Requirements
- **Build all components as class components. Find them inside `frontend/components`.**
- **Don't focus on styling. We want you to worry about function over form today.**
- Your todo list should display a list of todos, an input field, a submit button, and a button to filter out completed todos.
- `