ä»åã¯ååã«ãå°ãç»å ´ããPropã«ã¤ãã¦åãä¸ãããã¨æãã¾ãã åºæ¬çãªä½¿ãæ¹ Propã¯åºæ¬çã«ã¯Compnentã®attributeã¨ãã¦å®ç¾©ãã¦Componentã®ä¸ã§ã¯this.props.xxxã¨ãã¦åç §ãããããã ãã§ããPropã«ã¯Objectã§ãé¢æ°ã§ãä½ã§ãæå®ãããã¨ãåºæ¥ã¾ãã var Avatar = React.createClass({ render() { var avatarImg = `/img/avatar_${this.props.user.id}.png`; return( <div> <span>{this.props.user.name}</span> <img src={avatarImg} /> </div> ); } }); var user = { id: 10, name: "Hoge" }; // <Avatar user={us
{{#tags}}- {{label}}
{{/tags}}