ui: scratchpad reinit

This commit is contained in:
undefined committed 2022-08-27 20:23:35 +08:00
1 parent 2f2b1ca711
commit 6e4e2d5ecf
2 files changed
+3 -6

No files matched your search

@@ -149,15 +149,15 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
});
};
const root = createRoot($('#scratchpad').get(0));
renderReact = () => {
const root = createRoot($('#scratchpad').get(0));
root.render(
<Provider store={store}>
<ScratchpadApp />
</Provider>,
);
unmountReact = () => root.unmount();
};
unmountReact = () => root.unmount();
reactLoaded = true;
$('.loader-container').hide();
}