【发布时间】:2016-08-26 04:05:22
【问题描述】:
我有一个组件:
class CommentBox extends Component {
render() {
return (
<div>
<p>Some comment</p>
<a>Post a reply to this comment</a>
</div>
<ReplyForm />
)
}
}
我需要在初始加载时隐藏这个 ReplyForm。如何通过点击一个标签来触发它的状态?
【问题讨论】: