What is a state in <Link> component of React Router?

LANA·2021년 1월 25일
0

https://stackoverflow.com/questions/41736048/what-is-a-state-in-link-component-of-react-router

현재 프로젝트에서의 코드 중

<Link to={{state: { snack } }} />

이런 형태의 코드가 있었다.

위의 답변이 도움이 되어 참고용으로 기록.

profile
Let's code like chord !

0개의 댓글