Project Setup and Data Structure
Sveip for å vise menyen
In this section, you will build a simple Task Manager app.
The app will allow users to:
- Create tasks;
- Mark tasks as completed;
- Delete tasks;
- Load initial tasks from an API.
Project Structure
src/
app/
store.js
features/
tasks/
tasksSlice.js
components/
TaskForm.jsx
TaskList.jsx
TaskItem.jsx
App.jsx
main.jsx
Task Shape
Each task will look like this:
{
id: 1,
title: 'Learn Redux Toolkit',
completed: false
}
This structure is simple, but realistic enough to practice Redux Toolkit properly.
You defined the structure of the project and the shape of the data. This gives you a clear foundation for building state and features in the next steps.
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 7. Kapittel 1
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Seksjon 7. Kapittel 1