React.Children.only

Example of React.Children.onlyfor "Introduction to React"

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/JSXTransformer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/react-with-addons.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration.js"></script>

<div id="container">
    <!-- This element's contents will be replaced with your component. -->
</div>

React

var MyComponent = React.createClass({
displayName: "MyComponent",
render: function render() {
	return 					React.createElement("div",null,this.props.name);}});
React.render(React.createElement(MyComponent,{name:"frodo" }), document.getElementById("container"));