Skip to content

Commit

Permalink
Replace deprecated ReactDOM methods for docs-app
Browse files Browse the repository at this point in the history
  • Loading branch information
ggdouglas committed Jan 9, 2025
1 parent b772740 commit c4dfcaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/docs-app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

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

import { docsData } from "@blueprintjs/docs-data";
import {
Expand Down Expand Up @@ -43,7 +43,8 @@ const tagRenderers = {
reactExample: reactExample.render,
};

ReactDOM.render(
const container = document.getElementById("blueprint-documentation");
const root = ReactDOM.createRoot(container);
root.render(
<BlueprintDocs defaultPageId="blueprint" docs={docsData} tagRenderers={tagRenderers} useNextVersion={false} />,
document.querySelector("#blueprint-documentation"),
);

0 comments on commit c4dfcaf

Please sign in to comment.