score:0

    import { useHistory} from "react-router-dom";

    const MyCompo= () => {
    
      let history = useHistory();
      handleNewProcess = () => {
         history.push('/newprocess/');
        //HOW DO I REDIRECT THE CLICK FROM HERE TO "/newprocess" page 
    }

score:1

    import { useNavigate} from "react-router-dom";

    const MyCompo= () => {
    
      let navigate = useNavigate();
      handleNewProcess = () => {
         navigate(`/newprocess/`);
        //HOW DO I REDIRECT THE CLICK FROM HERE TO "/newprocess" page 
    }

Related Query

More Query from same tag