TypeError: ShallowWrapper::stát vyžaduje, aby "stát" nesmí být null "nebo" undefined`
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {/* initial state */}
}
}
TypeError: ShallowWrapper:: stát vyžaduje, aby "stát" nebyl "null" nebo " nedefinovaný`
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {/* initial state */}
}
}