Export remove function to unmount react components

This commit is contained in:
dgarcia 2020-03-18 11:04:58 +01:00
parent eb6b733157
commit 80c50d08d1
3 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1075,4 +1075,11 @@ function MCF_render(schemeToRender, referenceSelector) {
);
}
export {MCF_render as render};
function MCF_remove(referenceSelector){
ReactDOM.unmountComponentAtNode(document.querySelectorAll(referenceSelector)[0]);
}
export {
MCF_render as render,
MCF_remove as remove
};