Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 18 Upgrade #7142

Merged
merged 17 commits into from
Jan 22, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace deprecated ReactDOM methods for docs-app
ggdouglas committed Jan 17, 2025
commit 95bb8ce1a182c66883ff9627388cbdeb7cdce6b7
7 changes: 4 additions & 3 deletions packages/docs-app/src/index.tsx
Original file line number Diff line number Diff line change
@@ -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 {
@@ -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"),
);