0

Just as the title says, I want to know how to pass props to a React component that is passed to a Route as its element prop.

So, for this code

<Route path="/" element={<App />} >
    <Route path="table" element={<Table />} />
</Route>

How do I pass props to Table?

Drew Reese
  • 165,259
  • 14
  • 153
  • 181
Lucian Anghel
  • 237
  • 1
  • 3
  • 7

1 Answers1

1

Hey maybe this will be useful to you:

How to pass params into link using React router v6?

Veselin Kontić
  • 1,638
  • 2
  • 11
  • 23