title: react jsx inline if else altering style value
body: <p>I know how to use different class in jsx using if else short hand in jxs, but how can I do that too with style?</p>
  
  <p>says I have a loop where I need to check whether a property is present, if yes add margin top 10 to a div?</p>
  
  <pre><code>&lt;div style={{marginTop:10}} /&gt; 
  </code></pre>