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

53 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5a24c314108439a4d403614d
title: Define a Redux Action
challengeType: 6
isRequired: false
videoUrl: ''
localeTitle: Определение действия Redux
---
## Description
undefined
## Instructions
<section id="instructions"> Написание действия Redux так же просто, как объявление объекта с свойством type. Объявите объект <code>action</code> и придать ему свойство <code>type</code> установлен в строке <code>&#39;LOGIN&#39;</code> . </section>
## Tests
<section id='tests'>
```yml
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>.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='jsx-seed'>
```jsx
// Define an action here:
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>