React 刷新组件有什么好方法吗

#1

组件有异步数据,有状态的情况

#2

除了 setState 还有其它途径吗?

#3

了解下 https://github.com/fantasticsoul/react-control-center

quick-start: https://github.com/fantasticsoul/rcc-simple-demo

git clone https://github.com/fantasticsoul/rcc-simple-demo
npm i 
npm start

在cc的世界里,你可以emit ,可以setState 可以effect 可以dispatch,任由你喜欢