Skip to content

Commit 0a3118b

Browse files
Merge pull request #206 from reactjs/sync-26a870e1
Sync with reactjs.org @ 26a870e
2 parents dddc2fa + 788c410 commit 0a3118b

File tree

171 files changed

+305
-9436
lines changed

Some content is hidden

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

171 files changed

+305
-9436
lines changed

Diff for: beta/illustrations/import-export.ai

-4,950
This file was deleted.

Diff for: beta/illustrations/jsx.ai

-1,564
This file was deleted.
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",

Diff for: beta/plugins/sandbox-templates/cra/package.json

-13
This file was deleted.

Diff for: beta/plugins/sandbox-templates/cra/public/index.html

-26
This file was deleted.

Diff for: beta/plugins/sandbox-templates/cra/src/App.js

-5
This file was deleted.

Diff for: beta/plugins/sandbox-templates/cra/src/index.js

-13
This file was deleted.

Diff for: beta/plugins/sandbox-templates/cra/src/styles.css

-3
This file was deleted.
Loading

Diff for: beta/public/images/docs/diagrams/passing_data_context_close.dark.svg

-48
This file was deleted.
12.6 KB
Loading

Diff for: beta/public/images/docs/diagrams/passing_data_context_close.svg

-48
This file was deleted.
Loading

0 commit comments

Comments
 (0)