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:
var inputReactObject = React.Children.only(this.props.children);
inputReactObject.className = "test";
However that does not seem to work.
Is it possible to modify children attributes in a ReactJS component?
Full plunker: http://plnkr.co/edit/msbUSDBQn17qXzBHzGXD?p=preview