React中effect使用 Posted on 2019-08-25 之前我们已经掌握了useState 的使用,在 class 中,我们通过在构造函数中设置 this.state 为 { count: 0 } 来初始化 count state 为 0: Read more »