我一直在和reactjs TestUtils一起玩。这是相当令人沮丧的。我不确定,但在实验了几个小时之后。在我看来,在浅层渲染组件之后,我不能使用findRenderedComponentWithType或scryRenderedComponentsWithType。事实上,我不确定如何从ReactComponent tree中按类型提取对象。我不确定为什么,因为我是reactjs的新手,我不确定我能做什么或不能做什么。TestUtils.findRenderedComponentWithType(StubbedComponent, Use