Skip to content

Commit 2ca2343

Browse files
Merge branch 'main' into patch-1
2 parents 6147468 + 49dda3c commit 2ca2343

File tree

240 files changed

+3958
-10149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+3958
-10149
lines changed

beta/illustrations/import-export.ai

Lines changed: 0 additions & 4950 deletions
This file was deleted.

beta/illustrations/jsx.ai

Lines changed: 0 additions & 1564 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
diff --git a/node_modules/@codesandbox/sandpack-react/dist/esm/index.js b/node_modules/@codesandbox/sandpack-react/dist/esm/index.js
2+
index 4acfc3a..d00e57d 100644
3+
--- a/node_modules/@codesandbox/sandpack-react/dist/esm/index.js
4+
+++ b/node_modules/@codesandbox/sandpack-react/dist/esm/index.js
5+
@@ -566,17 +566,16 @@ var REACT_TEMPLATE = {
6+
},
7+
"/index.js": {
8+
code: `import React, { StrictMode } from "react";
9+
-import ReactDOM from "react-dom";
10+
+import { createRoot } from "react-dom/client";
11+
import "./styles.css";
12+
13+
import App from "./App";
14+
15+
-const rootElement = document.getElementById("root");
16+
-ReactDOM.render(
17+
+const root = createRoot(document.getElementById("root"));
18+
+root.render(
19+
<StrictMode>
20+
<App />
21+
- </StrictMode>,
22+
- rootElement
23+
+ </StrictMode>
24+
);`
25+
},
26+
"/styles.css": {
27+
@@ -611,8 +610,8 @@ h1 {
28+
}
29+
},
30+
dependencies: {
31+
- react: "^17.0.0",
32+
- "react-dom": "^17.0.0",
33+
+ react: "^18.0.0",
34+
+ "react-dom": "^18.0.0",
35+
"react-scripts": "^4.0.0"
36+
},
37+
entry: "/index.js",

beta/plugins/sandbox-templates/cra/package.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

beta/plugins/sandbox-templates/cra/public/index.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

beta/plugins/sandbox-templates/cra/src/App.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

beta/plugins/sandbox-templates/cra/src/index.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

beta/plugins/sandbox-templates/cra/src/styles.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

beta/public/html/single-file-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>Hello World</title>
6-
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
7-
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
8-
6+
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
7+
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
8+
99
<!-- Don't use this in production—do this: https://reactjs.org/docs/add-react-to-a-website#add-jsx-to-a-project -->
1010
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
1111
</head>

0 commit comments

Comments
 (0)