Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Actions | Redux Toolkit
Expert React
course content

Зміст курсу

Expert React

Expert React

1. React Key Concepts
2. React Router
3. Redux Toolkit
4. Formik
5. Jest
6. Next Steps

bookChallenge: Actions

Step 2: Create actions

Focus on creating actions for managing goals. Actions are objects that describe the changes we want to make to the state. By creating actions, we can update the Redux store accordingly.

Example

Challenge

  1. Open the goalAction.js file.
  2. Use the correct function from the @reduxjs/toolkit package to create actions.
  3. Specify the correct action types using the target element goal and indicate the action for each action.
  4. To remove a goal, set the action type as goals/removeGoal.
  5. To add a goal, set the action type as goals/addGoal.

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 10
We're sorry to hear that something went wrong. What happened?
some-alt