Inflearn Community Q&A
8분 27초 쯤에 uploadProductPage가 자식 컴포넌트가 됐다는 말이 이해가 잘 안갑니다ㅠㅠ
Resolved
Written on
·
194
1
Auth에 있는 user data에 따라, uploadProductPage의 submitHandler 바디값이 바뀌기 때문인가요?
웹앱mongodbreduxnodejsreact
Answer 2
1
1
John Ahn
Instructor
원래 Auth 컴포넌트가 HOC 이기 떄문에 모든 컴포넌트에 부모컴포넌트가 됩니다 ^^
App.js 에 보시면
<Route exact path="/" component={Auth(LandingPage, null)} />
이런식으로 되어있는것이 Auth 컴포넌트 안에 하나 하나의 컴포넌트가 들어가는 겁니다 ~ !





