title: Render same component for 3 routes
body: <p>I want my react router to return  component only when URL matches either of those 3 paths exactly and return an error when it doesn't. How can I shorten this?</p>
  <pre><code>  return (
      &lt;BrowserRouter&gt;
        &lt;Routes&gt;
          &lt;Route path=&quot;/&quot; element={&lt;Table entries={posts} /&gt;} /&gt;
          &lt;Route path=&quot;/evens&quot; element={&lt;Table entries={posts} /&gt;} /&gt;
          &lt;Route path=&quot;/odds&quot; element={&lt;Table entries={posts} /&gt;} /&gt;
          &lt;Route ??? element={&lt;ErrorPage /&gt;} /&gt;
        &lt;/Routes&gt;
      &lt;/BrowserRouter&gt;
    );
  </code></pre>