freeCodeCamp/curriculum/challenges/russian/03-front-end-libraries/redux/define-a-redux-action.russi...

1.1 KiB
Raw Blame History

id title challengeType isRequired videoUrl localeTitle
5a24c314108439a4d403614d Define a Redux Action 6 false Определение действия Redux

Description

undefined

Instructions

Написание действия Redux так же просто, как объявление объекта с свойством type. Объявите объект action и придать ему свойство type установлен в строке 'LOGIN' .

Tests

tests:
  - text: ''
    testString: 'assert((function() { return typeof action === "object" })(), "An action object should exist.");'
  - text: ''
    testString: 'assert((function() { return action.type === "LOGIN" })(), "The action should have a key property type with value <code>LOGIN</code>.");'

Challenge Seed

// Define an action here:

Solution

// solution required