unmountComponentAtNode

dev_forum
hjm 5 years ago
parent b2a55d82cb
commit e90fbb60f3

@ -104,6 +104,7 @@ class TPIContextProvider extends Component {
showEffectDisplay = (data) => {
const dom = document.getElementById('picture_display');
window.$(dom).show();
ReactDOM.unmountComponentAtNode(dom)
ReactDOM.render(<EvaluateSuccessEffectDisplay type={"qrcode"} {...data} />, dom);
}

Loading…
Cancel
Save