title: React : cannot add property 'X', object is not extensible
body: <p>I am receiving props in my component. I want to add a property 'LegendPosition' with the props in this component. I am unable to do that. Please help me with this.
  I have tried this code yet but no success:</p>
  
  <pre><code>var tempProps     = this.props;
  tempProps.legendPosition = 'right';
  Object.preventExtensions(tempProps);
  
  console.log(tempProps);
  </code></pre>