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
  • 103,803
  • 12
  • 69
  • 96
Lucian Anghel
  • 177
  • 1
  • 1
  • 6

1 Answers1

1

Hey maybe this will be useful to you:

How to pass params into link using React router v6?

Veselin Kontić
  • 1,050
  • 1
  • 9
  • 22