title: Conditional Rendering Redux and React
body: <p>I have a <code>Component</code> with an <code>onClick</code> event. This event sets in my <code>global state</code> some <code>boolean</code> to <code>true</code>. How can, depending on this <code>boolean</code> render/hide another <code>component</code>?</p>
  
  <p>I could write something like (pseudocode!)</p>
  
  <pre><code>&lt;ParentCompononet
  
      conditionalRendering(props) {
          if(props.boolean) {
              &lt;ConditionalComponent /&gt;
          } else {
              null
          }
  
       render () {
           return (
               { conditionalRendering }
           )
  /&gt;
  </code></pre>
  
  <p>Not sure if that would be the right way</p>