mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Fix import
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
diff --git a/node_modules/@codesandbox/sandpack-react/dist/esm/index.js b/node_modules/@codesandbox/sandpack-react/dist/esm/index.js
|
||||
index 4acfc3a..cdb83f1 100644
|
||||
index 4acfc3a..d00e57d 100644
|
||||
--- a/node_modules/@codesandbox/sandpack-react/dist/esm/index.js
|
||||
+++ b/node_modules/@codesandbox/sandpack-react/dist/esm/index.js
|
||||
@@ -566,17 +566,16 @@ var REACT_TEMPLATE = {
|
||||
@@ -7,7 +7,7 @@ index 4acfc3a..cdb83f1 100644
|
||||
"/index.js": {
|
||||
code: `import React, { StrictMode } from "react";
|
||||
-import ReactDOM from "react-dom";
|
||||
+import { createRoot } from "react-dom";
|
||||
+import { createRoot } from "react-dom/client";
|
||||
import "./styles.css";
|
||||
|
||||
import App from "./App";
|
||||
|
||||
Reference in New Issue
Block a user