报错Cannot read property 'child' of undefined
shallow可以正常使用,但是mount就不能用
组件Foo如下:
import React, { Component } from "react";
class Foo extends Component {
render() {
return <div></div>;
}
}
export default Foo;
报错Cannot read property 'child' of undefined
shallow可以正常使用,但是mount就不能用
组件Foo如下:
import React, { Component } from "react";
class Foo extends Component {
render() {
return <div></div>;
}
}
export default Foo;