title: How can i redirect after submit form React
body: <p>i'm newbie for React maybe for english too. How can i redirect after form submitted ?</p>
  
  <pre><code>  function Test() {
    const { register, handleSubmit } = useForm()
    const onSubmit = data =&gt; {
      fetch(`http://localhost:4000/signup`)
      //Here i want to redirect after signup
    }
    return (
      &lt;form onSubmit={handleSubmit(onSubmit)}&gt;
        ....
      &lt;/form&gt;
    );
  }
  </code></pre>