Update EditView onClick

I just managed to do it with React’s router:

import { useHistory } from 'react-router-dom';
const Component = () => {
  const history = useHistory();
  history.push(`contentype/path/:id`)
}
1 Like