File tree Expand file tree Collapse file tree 3 files changed +43
-41
lines changed Expand file tree Collapse file tree 3 files changed +43
-41
lines changed Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import "./style.css";
33import 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' ;
88import { OpenAPI as ClientOpenAPI } from "windmill-client" ;
99import { OpenAPI as ComponentsOpenAPI } from "@windmill-labs/windmill-react-sdk" ;
1010import App from "./App" ;
@@ -21,6 +21,14 @@ async function initializeClients() {
2121
2222await 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+ // );
You can’t perform that action at this time.
0 commit comments