codestates / codestates/waf-client

[ERROR] react props / react-router-dom props 전달

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
bug Complete
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- 에러 종류 : react props 전달
- 에러 메세지 : react-router-dom props 전달 문제
- this.props.history.push("/")를 사용할 때, 해당 이동하는 경로로 props가 넘어가지 않았음.

- 해결 방법 :
```
this.props.history.push({ pathname: "/", propsname: propscontents})로 넘겨주고,
child Component 에서 this.props.location.propsname으로 받아서 사용함.

```
- 참고 링크
구글 검색...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.