Skip to content

Commit c4cc50f

Browse files
committed
Use Canary builds in sandboxes
1 parent 053bd5c commit c4cc50f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/content/reference/react/captureOwnerStack.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ createRoot(document.createElement('div'), {
129129
```json package.json hidden
130130
{
131131
"dependencies": {
132-
"react": "experimental",
133-
"react-dom": "experimental",
132+
"react": "canary",
133+
"react-dom": "canary",
134134
"react-scripts": "latest"
135135
},
136136
"scripts": {
@@ -322,7 +322,6 @@ export function onConsoleError({ consoleMessage, ownerStack }) {
322322
const errorDialog = document.getElementById("error-dialog");
323323
const errorBody = document.getElementById("error-body");
324324
const errorOwnerStack = document.getElementById("error-owner-stack");
325-
const errorStack = document.getElementById("error-stack");
326325

327326
// Display console.error() message
328327
errorBody.innerText = consoleMessage;
@@ -361,8 +360,8 @@ createRoot(container).render(<App />);
361360
```json package.json hidden
362361
{
363362
"dependencies": {
364-
"react": "experimental",
365-
"react-dom": "experimental",
363+
"react": "canary",
364+
"react-dom": "canary",
366365
"react-scripts": "latest"
367366
},
368367
"scripts": {
@@ -421,8 +420,8 @@ export default function App() {
421420
```json package.json hidden
422421
{
423422
"dependencies": {
424-
"react": "experimental",
425-
"react-dom": "experimental",
423+
"react": "canary",
424+
"react-dom": "canary",
426425
"react-scripts": "latest"
427426
},
428427
"scripts": {

0 commit comments

Comments
 (0)