render using props react router code example
Example: route component with props
<Route
path='/dashboard'
component={() => <Dashboard isAuthed={true} />}
/>
<Route
path='/dashboard'
component={() => <Dashboard isAuthed={true} />}
/>