title: How to add className to component in react?
body: <p>I have a navbar component that I created for react.
  When I call this component on different pages, I need to change the classNames.</p>
  <p>For example : I want my &quot;&quot; component to have a different class on one page and a different class on another page.</p>
  <pre><code>const ServicesCiso = () =&gt; {
  return (
      &lt;div className=&quot;hero&quot;&gt;
          &lt;NavBar/&gt;
          &lt;div className...
  </code></pre>
  <p>How can i add className in this code ?</p>