title: How to add and remove add class for list in reactjs?
body: <p><a href="https://i.stack.imgur.com/dj0kg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dj0kg.png" alt="enter image description here"></a></p>
  
  <p>For example, just switching the active classes btw to li. But not with router.
  I have list like this it is not cicle with map() method. It is static list.</p>
  
  <pre><code> constructor(props) {
          super(props);
          const parsedUrlQuery = window.location.pathname;
          this.state = {
              isActive: true
          }
      }
  
    &lt;ul className='bread list-inline'&gt;
         &lt;li className={this.state.isActive ? 'navigation--active' : ''}&gt;All projects&lt;/li&gt;
         &lt;li&gt; My projects&lt;/li&gt;
    &lt;/ul&gt;
  </code></pre>
  
  <p>the problem is i don not know how to remove and add class for static list. Could u help me with that. </p>