|
427 | 427 | "description":"The power of middleware with\"redux-logger\".\n\nExplanation here.",
|
428 | 428 | "tasks": [
|
429 | 429 | {
|
430 |
| -"description":"import `applyMiddleware` in\"index.js\"", |
| 430 | +"description":"import `applyMiddleware` in\"index.js\" from the\"redux\" package. It is a named import.", |
431 | 431 | "tests": [
|
432 | 432 | "08/01"
|
433 | 433 | ],
|
|
439 | 439 | "description":"set the second param in createStore to `applyMiddleware()`",
|
440 | 440 | "tests": [
|
441 | 441 | "08/02"
|
| 442 | + ], |
| 443 | +"hints": [ |
| 444 | +"Try this: `createStore(reducers, applyMiddleware());`" |
442 | 445 | ]
|
443 | 446 | },
|
444 | 447 | {
|
445 | 448 | "description":"install\"redux-logger\" using npm",
|
446 | 449 | "tests": [
|
447 | 450 | "08/03"
|
| 451 | + ], |
| 452 | +"hints": [ |
| 453 | +"Try this: `npm install --save-dev redux-logger`" |
448 | 454 | ]
|
449 | 455 | },
|
450 | 456 | {
|
451 |
| -"description":"create a\"logger\"as the result of `createLogger()`", |
| 457 | +"description":"import `createLogger` from the\"redux-logger\"package. It is a default import.", |
452 | 458 | "tests": [
|
453 | 459 | "08/04"
|
| 460 | + ], |
| 461 | +"hints": [ |
| 462 | +"Try this: `import createLogger from 'redux-logger';`" |
454 | 463 | ]
|
455 | 464 | },
|
456 | 465 | {
|
457 |
| -"description":"pass\"logger\"into `applyMiddleware()`", |
| 466 | +"description":"create a\"logger\"as the result of `createLogger()`", |
458 | 467 | "tests": [
|
459 | 468 | "08/05"
|
| 469 | + ], |
| 470 | +"hints": [ |
| 471 | +"Note that `logger` should be above `store`.", |
| 472 | +"Try this: `const logger = createLogger()`" |
| 473 | + ] |
| 474 | + }, |
| 475 | + { |
| 476 | +"description":"pass\"logger\" into `applyMiddleware()`", |
| 477 | +"tests": [ |
| 478 | +"08/06" |
| 479 | + ], |
| 480 | +"hints": [ |
| 481 | +"Try this: `applyMiddleware(logger)`" |
460 | 482 | ]
|
461 | 483 | }
|
462 | 484 | ],
|
|