What's the best way to pass props from a parent component to a child route? #471
Unanswered
mikemorton
asked this question in
Q&A
Replies: 1 comment
-
I am also looking for answer for this. For example if I am using then I can pass "param" (route param) - which one one parameter. Child route component may expect more props. How to pass them from ? I found following ways:
Is there any other better way than this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm guessing I could do this with a context provider and
useContext
but I'm wondering if there is a better way built into the router already?Beta Was this translation helpful? Give feedback.
All reactions