본문 바로가기
JS/react

[React] Route Component에 props 전달하기.

Route 컴포넌트의 component 말고 render 사용하기.

 

<Route

    path='/education'

    render={() => <Education education={data} />}

/>

 

 

 

참조 : https://sustainable-dev.tistory.com/117