Skip to content

Commit 9052bf5

Browse files
committed
react 19
1 parent e7f6333 commit 9052bf5

File tree

3 files changed

+43
-41
lines changed

3 files changed

+43
-41
lines changed

package-lock.json

Lines changed: 23 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "my-app",
2+
"name": "Windmill Whitelabel Example",
33
"version": "0.1.0",
44
"private": true,
55
"homepage": "https://windmill-sdk-example.com",
66
"dependencies": {
7-
"@windmill-labs/windmill-react-sdk": "^1.501.24",
8-
"react": "^17.0.0",
9-
"react-dom": "^17.0.0",
7+
"@windmill-labs/windmill-react-sdk": "^1.501.26",
8+
"react": "^19.0.0",
9+
"react-dom": "^19.0.0",
1010
"react-scripts": "5.0.1",
1111
"windmill-client": "1.339.1"
1212
},

src/index.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import "./style.css";
33
import React from "react";
44
//react 18
55
// import ReactDOM from "react-dom/client";
6-
import ReactDOM from "react-dom";
7-
6+
// import ReactDOM from "react-dom";
7+
import { createRoot } from 'react-dom/client';
88
import { OpenAPI as ClientOpenAPI } from "windmill-client";
99
import { OpenAPI as ComponentsOpenAPI } from "@windmill-labs/windmill-react-sdk";
1010
import App from "./App";
@@ -21,6 +21,14 @@ async function initializeClients() {
2121

2222
await initializeClients();
2323

24+
// react 19
25+
const root = createRoot(document.getElementById("root"));
26+
root.render(
27+
<React.StrictMode>
28+
<App />
29+
</React.StrictMode>
30+
);
31+
2432
// react 18
2533
// let react = ReactDOM.createRoot(document.getElementById("root"));
2634
// react.render(
@@ -30,9 +38,9 @@ await initializeClients();
3038
// );
3139

3240
// react 17
33-
ReactDOM.render(
34-
<React.StrictMode>
35-
<App />
36-
</React.StrictMode>,
37-
document.getElementById("root")
38-
);
41+
// ReactDOM.render(
42+
// <React.StrictMode>
43+
// <App />
44+
// </React.StrictMode>,
45+
// document.getElementById("root")
46+
// );

0 commit comments

Comments
 (0)