Skip to content

Commit 4c2f16f

Browse files
committed
docs: fix duplicate words in documentation
Remove duplicate words in two documentation files: - 'the the' -> 'the' in react-performance-tracks.md - 'can can' -> 'can' in createRoot.md
1 parent 1207ee3 commit 4c2f16f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/content/reference/dev-tools/react-performance-tracks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ In development builds, when you click on a component render entry, you can inspe
140140

141141
The Server Requests track visualized all Promises that eventually end up in a React Server Component. This includes any `async` operations like calling `fetch` or async Node.js file operations.
142142

143-
React will try to combine Promises that are started from inside third-party code into a single span representing the the duration of the entire operation blocking 1st party code.
143+
React will try to combine Promises that are started from inside third-party code into a single span representing the duration of the entire operation blocking 1st party code.
144144
For example, a third party library method called `getUser` that calls `fetch` internally multiple times will be represented as a single span called `getUser`, instead of showing multiple `fetch` spans.
145145

146146
Clicking on spans will show you a stack trace of where the Promise was created as well as a view of the value that the Promise resolved to, if available.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ The <CodeStep step={1}>onCaughtError</CodeStep> option is a function called with
379379
1. The <CodeStep step={2}>error</CodeStep> that was thrown.
380380
2. An <CodeStep step={3}>errorInfo</CodeStep> object that contains the <CodeStep step={4}>componentStack</CodeStep> of the error.
381381
382-
Together with `onUncaughtError` and `onRecoverableError`, you can can implement your own error reporting system:
382+
Together with `onUncaughtError` and `onRecoverableError`, you can implement your own error reporting system:
383383
384384
<Sandpack>
385385

0 commit comments

Comments
 (0)