import domReady from "@wordpress/dom-ready";
import { createRoot } from "@wordpress/element";
import App from "./App";
import { ROOT_ELEMENT_ID } from "./config";

domReady(() => {
    const container = document.getElementById(ROOT_ELEMENT_ID);
    if (container) {
        createRoot(container).render(<App />);
    }
});
