React polymorphic web app - force component to re-render on event

前端 未结 0 1200
既然无缘
既然无缘 2021-01-30 03:21

I\'m using recat-starter-kit and got the following code:

if (duel.players.length === 2) {
      console.log(\'Start duel, emit event!\');
      pubsub.emit(\'DUEL         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题