title: React / Redux conditionally applying style
body: <p>In my <code>React &amp; Redux</code> App, I am trying to <code>show/hide</code> a <code>div</code> based on <code>state</code> returned by <code>Redux</code>. Here is my code:</p>
  
  <pre><code>&lt;div 
      className="notify-success" 
      style={{  ({this.props.terms}) ? "" : "display: 'none'" }} 
  &gt;
      Saved successfully!
  &lt;/div&gt;
  </code></pre>
  
  <p>But its not working for me, instead throwing an error!</p>