강의

멘토링

커뮤니티

Inflearn Community Q&A

grabit1156101's profile image
grabit1156101

asked

Node and React series that you can learn by following - Basic lecture

Node React Basics Lecture #20 React Router Dom

auth로 감싼 컴포넌트에 props 주기

Written on

·

227

0

app.js 에서 auth()안에 컴포넌트를 넣고 나서 그 컴포넌트에 props를 주려면 어떻게 해야 하나요??

nodejsreact

Answer 2

1

John Ahn님의 프로필 이미지
John Ahn
Instructor

안녕하세요 tv태정님 

useEffect에서 데이터를 생성해준후에

<SpecificComponent user={users} />

이런식으로 users데이터를 넘겨주고 싶으면 위에처럼 넘겨주시면 됩니다.

0

grabit1156101님의 프로필 이미지
grabit1156101
Questioner

와 잘되네요 감사합니다. 방법 찾느라 고생했어요ㅠㅠ

grabit1156101's profile image
grabit1156101

asked

Ask a question