Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Project Setup and Data Structure | Building a Real Application with Redux Toolkit
State Management with Redux Toolkit in React

bookProject Setup and Data Structure

メニューを表示するにはスワイプしてください

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.

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 7.  1

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 7.  1
some-alt