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