2021-Aug React JS Usehistory Route needs to exist 123456<Route path="/editschedule/:id"> <EditSchedule equipment={equipment} interval={interval} schedule={schedule} /></Route> Then use the hook to navigate 12345let history = useHistory();function handleClick(id: string) { history.push("editschedule/" + id);} Newer React JS Router Older React JS Useparams