title: switch to new page on form submit react
body: <p>I have this (in my <code>contact.js</code> file).</p>
  <pre><code>axios
        .post('http://localhost:3000/create', book)
        .then(() =&gt; console.log('Created'))
        .then(() =&gt; this.props.history.push({Home}))
        .catch(err =&gt; {
          console.error(err);
        });
  </code></pre>
  <p>It calls this successfully, but now I want to render a new page, which would be <code>home.js</code>, in the same folder. I was wondering how I can do this, after it makes the call to the backend. Can I do it from the front end, or does it have to be backend?</p>