refactoring courseschedule storage

This commit is contained in:
Sriram Hariharan
2023-09-17 19:29:00 -05:00
parent 9658697d96
commit aea9b16f98
17 changed files with 83 additions and 59 deletions

View File

@@ -0,0 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
export default function render(element: React.ReactElement, container: HTMLElement | ShadowRoot | null) {
if (!container) {
throw new Error('Container is null');
}
const root = ReactDOM.createRoot(container);
root.render(element);
}