title: React inline style - style prop expects a mapping from style properties to values, not a string
body: <p>I am trying to set inline styles in my React application. In this case, for a span:</p>
  
  <pre><code>&lt;span className="myClass" style={{float : 'left', paddingRight : '5px'}} &gt; &lt;/span&gt;
  </code></pre>
  
  <p>React tells me:</p>
  
  <blockquote>
    <p>Uncaught Invariant Violation: The <code>style</code> prop expects a mapping from
    style properties to values, not a string. For example,
    style={{marginRight: spacing + 'em'}} when using JSX. This DOM node
    was rendered by `SentenceView</p>
  </blockquote>
  
  <p>I am not quite sure what it means.</p>
  
  <p>PS: I have tried different versions, so I did <code>paddingRight: 5</code> as well as <code>paddingRight: 5 + 'px'</code> as well as <code>paddingRight : 5px</code>, but I didn't have any success!</p>