Skip to content

오탈자 345,346p #29

@greatfarmer

Description

@greatfarmer

341p src/app.js에서

import * as postActions from './modules/post'; //이 곳 postActions에서 p는 소문자

345, 346p src/app.js에서

//345p
const { PostActions, number } = this.props; // 이곳에서 부터 PostActions의 P가 대문자로 쓰였습니다.
PostActions.getPost(number).then(
...

//356p
const { PostActions, number } = this.props;
try {
  const response = await PostActions.getPost(number);
...

책 예제 그대로 했을 때, 에러가 발생해서
345, 345p의 PostActions -> postActions 341p의 정의로 통일했더니
에러가 해결되었습니다.

이 내용이 정확한 해결이 아닐 수도 있어, 확인해보시면 좋을 것 같습니다.
감사합니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions