Skip to content

Commit 132b340

Browse files
authored
fix conflict
1 parent ca8a671 commit 132b340

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

src/content/reference/react-dom/client/createRoot.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,8 @@ export default function App() {
465465
466466
</Sandpack>
467467
468-
<<<<<<< HEAD
469-
470468
---
471469
## 错误排查 {/*troubleshooting*/}
472-
=======
473-
## Troubleshooting {/*troubleshooting*/}
474-
>>>>>>> dfc4448e0d0987d1643ddc5360f215e804badabb
475470
476471
### 我已经创建了一个根节点,但是页面没有显示任何内容 {/*ive-created-a-root-but-nothing-is-displayed*/}
477472

src/content/reference/react/Component.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,27 +1290,18 @@ class ErrorBoundary extends React.Component {
12901290
}
12911291
12921292
componentDidCatch(error, info) {
1293-
<<<<<<< HEAD
1294-
// 示例“组件堆栈”:
1295-
// 在 ComponentThatThrows 中(由 App 创建)
1296-
// 在 ErrorBoundary 中(由 APP 创建)
1297-
// 在 div 中(由 APP 创建)
1298-
// 在 App 中
1299-
logErrorToMyService(error, info.componentStack);
1300-
=======
13011293
logErrorToMyService(
13021294
error,
1303-
// Example "componentStack":
1304-
// in ComponentThatThrows (created by App)
1305-
// in ErrorBoundary (created by App)
1306-
// in div (created by App)
1307-
// in App
1295+
// 示例“组件堆栈”:
1296+
// ComponentThatThrows 中(由 App 创建)
1297+
// ErrorBoundary 中(由 APP 创建)
1298+
// div 中(由 APP 创建)
1299+
// App
13081300
info.componentStack,
1309-
// Only available in react@canary.
1310-
// Warning: Owner Stack is not available in production.
1301+
// 仅在 react@canary 版本可用
1302+
// 警告:Owner Stack 在生产中不可用
13111303
React.captureOwnerStack(),
13121304
);
1313-
>>>>>>> dfc4448e0d0987d1643ddc5360f215e804badabb
13141305
}
13151306
13161307
render() {

0 commit comments

Comments
 (0)