title: Modify attributes of children in ReactJS component
body: <p>I am trying to figure out how to modify the children of a component to for example, add a class.  I have tried to do:</p>
  
  <pre><code>var inputReactObject = React.Children.only(this.props.children);
  
  inputReactObject.className = "test";
  </code></pre>
  
  <p>However that does not seem to work.</p>
  
  <p>Is it possible to modify children attributes in a ReactJS component?</p>
  
  <p>Full plunker: <a href="http://plnkr.co/edit/msbUSDBQn17qXzBHzGXD?p=preview">http://plnkr.co/edit/msbUSDBQn17qXzBHzGXD?p=preview</a></p>