Skip to content

Commit fe22314

Browse files
Update src/content/reference/react/captureOwnerStack.md
Co-authored-by: Ricky <[email protected]>
1 parent 08b6a85 commit fe22314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/captureOwnerStack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ createRoot(document.createElement('div'), {
114114
onUncaughtError: (error, errorInfo) => {
115115
// The stacks are logged instead of showing them in the UI directly to highlight that browsers will apply sourcemaps to the logged stacks.
116116
// Note that sourcemapping is only applied in the real browser console not in the fake one displayed on this page.
117-
console.log(errorInfo.componentStack);
118-
console.log(captureOwnerStack());
117+
console.log('Component Stack:', errorInfo.componentStack);
118+
console.log('Owner Stack:', captureOwnerStack());
119119
},
120120
}).render(
121121
<App>

0 commit comments

Comments
 (0)