class comment extends React component {
继承 组件
render (){
return {
<li className="commentAuthor">{this.props.author}; //组件
{this.props.children}</li>
}
}
}
import comment from "./comment.js";
class comment extends React component {
继承 组件
render (){
return {
<li className="commentAuthor">{this.props.author}; //组件
{this.props.children}</li>
}
}
}
import comment from "./comment.js";