route return props with component reactjs code example
Example: route component with props
<Route
path='/dashboard'
component={() => <Dashboard isAuthed={true} />}
/>
<Route
path='/dashboard'
component={() => <Dashboard isAuthed={true} />}
/>