how to pass a state as prop code example Example: how to pass a prop in route <Route path='/dashboard' component={() => <Dashboard isAuthed={true} />} />