上一篇主要写得是React组件的创建语句和基本的语法。这篇同样借助上一篇中的demo说明数据的处理。包括props和state. 一.props 先来看一下什么场景下需要使用props传递数据。需要一段代码和说明。 在上面的代码中。组件CommentList的子节点Comment和评论文字如:”th Read More
posted @ 2017-03-31 00:55 Living_In_Freedom Views(274) Comments(0) Diggs(0)