* [Rus] Improved the translation Changed file "get-state-from-the-redux-store.russian.md" * Changed line 11 * Improved the translation * Improved the translation * Added the translation to sections also improved the translation of the sections "tests" and "challengeSeed" * Improved the translation
2.1 KiB
2.1 KiB
id, title, challengeType, isRequired, videoUrl, localeTitle
| id | title | challengeType | isRequired | videoUrl | localeTitle |
|---|---|---|---|---|---|
| 5a24c314108439a4d403614e | Define an Action Creator | 6 | false | Определить создателя действия |
Description
Instructions
actionCreator() , которая возвращает объект action при вызове. Tests
tests:
- text: Функция <code>actionCreator</code> должна существовать.
testString: 'assert(typeof actionCreator === "function", "The function <code>actionCreator</code> should exist.");'
- text: Запуск функции <code>actionCreator</code> должен вернуть объект действия.
testString: 'assert(typeof action === "object", "Running the <code>actionCreator</code> function should return the action object.");'
- text: Возвращаемое действие должно иметь свойство type со значением <code>LOGIN</code> .
testString: 'assert(action.type === "LOGIN", "The returned action should have a key property type with value <code>LOGIN</code>.");'
Challenge Seed
const action = {
type: 'LOGIN'
}
// Определите создателя действия здесь:
Solution
// solution required