はじめに React Component には様々な書き方があるので、自分の理解のため整理してみました。 var CommentBox = ... ReactDOM.render( <CommentBox hello="Hello, world" name="CommentBox" />, document.getElementById('content') ) 以下、CommentBox に hello と name という props を渡す stateless なコンポーネントを前提とします。 基本型 チュートリアルに出てくる書き方で、誰しもが真っ先に覚える書き方かと思います。 https://facebook.github.io/react/docs/tutorial.html var CommentBox = React.createClass({ render: functio