diff --git a/examples/material-ui-via-cdn/README.md b/examples/material-ui-via-cdn/README.md index fc8062310ea7ec..acdba207e21fe4 100644 --- a/examples/material-ui-via-cdn/README.md +++ b/examples/material-ui-via-cdn/README.md @@ -12,7 +12,10 @@ cd material-ui-via-cdn Run: ```bash +# React 19 or later open index.html +# React 18 +open react-18-example.html ``` ## The idea behind the example diff --git a/examples/material-ui-via-cdn/index.html b/examples/material-ui-via-cdn/index.html index 0b8d8398478268..1877ab42e28e10 100644 --- a/examples/material-ui-via-cdn/index.html +++ b/examples/material-ui-via-cdn/index.html @@ -18,8 +18,9 @@ "imports": { "react": "https://esm.sh/react@latest", "react-dom": "https://esm.sh/react-dom@latest", + "react-dom/client": "https://esm.sh/react-dom@latest/client", "react/jsx-runtime": "https://esm.sh/react@latest/jsx-runtime", - "@mui/material": "https://esm.sh/@mui/material@latest?external=react" + "@mui/material": "https://esm.sh/@mui/material@latest?external=react,react-dom" } } @@ -31,7 +32,7 @@ + +
+ + + + + + +