cleanup在codesandbox中不起作用,我在这里建议的人评论ReactDOM.render函数:https://github.com/CompuIves/codesandbox-client/issues/1525它可以工作,但fireEvent不起作用。反之亦然,当我不评论 ReactDOM.render 函数时,它fireEvent可以工作,cleanup也不能。
cleanup在codesandbox中不起作用,我在这里建议的人评论ReactDOM.render函数:https://github.com/CompuIves/codesandbox-client/issues/1525它可以工作,但fireEvent不起作用。反之亦然,当我不评论 ReactDOM.render 函数时,它fireEvent可以工作,cleanup也不能。