import * as React from "react"; import { createRoot } from 'react-dom/client'; import CategoryChooserComponent from "../components/options/CategoryChooserComponent"; class CategoryChooser { ref: React.RefObject; constructor(element: Element) { this.ref = React.createRef(); const root = createRoot(element); root.render( ); } update(): void { this.ref.current?.forceUpdate(); } } export default CategoryChooser;