Skip to content

Commit

Permalink
Remove deprecated ReactDOM methods from demo-app
Browse files Browse the repository at this point in the history
  • Loading branch information
ggdouglas committed Jan 9, 2025
1 parent ede3048 commit 5c8f5ad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/demo-app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,24 @@
*/

import * as React from "react";
import * as ReactDOM from "react-dom";
import * as ReactDOM from "react-dom/client";

import { BlueprintProvider, FocusStyleManager } from "@blueprintjs/core";

import { Examples } from "./examples/Examples";

FocusStyleManager.onlyShowFocusOnTabs();

const container = document.getElementById("blueprint-demo-app");
const root = ReactDOM.createRoot(container);

(async () => {
// Wait until CSS is loaded before rendering components because some of them (like Table)
// rely on those styles to take accurate DOM measurements.
await import("./index.scss");
ReactDOM.render(
root.render(
<BlueprintProvider>
<Examples />
</BlueprintProvider>,
document.querySelector("#blueprint-demo-app"),
);
})();

0 comments on commit 5c8f5ad

Please sign in to comment.