How make instance of class observable (mobx)

前端 未结 0 1872
迷失自我
迷失自我 2021-02-06 03:39

I have react component and I need make instance of class like observable.

@observer
class A extend React.Component {
    // make observable
    instance = new B()         


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