title: Creating a button which links to another page in reactJS
body: <p>I am currently doing an exercise in creating a web app in reactjs, the task is to create a button which when pressed "the app goes to a new route " - so basically create a new page.
  Ive tried the usual html buttons / href but this isn't working.</p>
  
  <p>The code where i'm assuming the button would go looks like this:</p>
  
  <pre><code>`return (
      &lt;div className="jokeSection"&gt;
        &lt;h1&gt;Chuck norris jokes&lt;/h1&gt;
        &lt;h3&gt;{joke}&lt;/h3&gt;
        &lt;button onClick={() =&gt; newJoke()}&gt;Click here for a chuckle&lt;/button&gt;
        &lt;button a href="search.js"&gt;Search for joke&lt;/button&gt;
      &lt;/div&gt;
    )`
  </code></pre>
  
  <p>Appreciate the help!</p>