passing prop from react-router rout code example
Example: how to pass a prop in route
<Route
path='/dashboard'
component={() => <Dashboard isAuthed={true} />}
/>
<Route
path='/dashboard'
component={() => <Dashboard isAuthed={true} />}
/>