title: Materialize navbar links conditional rendering
body: <p>I am using React Materialize and React Router Dom. I'm trying to show navlinks to only authenticated users, so I'm using conditional rendering. But if I do it like below, navlinks are rendered vertical, not horizontal as usual. Is there a solution for that? Thanks</p>
  <pre><code>    &lt;Navbar&gt;
        {isAuthenticated &amp;&amp; (
        &lt;&gt;
        &lt;NavLink to=&quot;/locations&quot; href=&quot;/locations&quot;&gt;
          Locations
        &lt;/NavLink&gt;
        &lt;NavLink to=&quot;/categories&quot; href=&quot;/categories&quot;&gt;
          Categories
        &lt;/NavLink&gt;
        &lt;/&gt;
        )}
      &lt;/Navbar&gt;
  </code></pre>