Skip to content

Commit 17fd599

Browse files
committed
fix(docs): remove redundant section describing caveats of profiling
1 parent e9a7cb1 commit 17fd599

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/content/reference/react/Profiler.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ Wrap a component tree in a `<Profiler>` to measure its rendering performance.
3535
* `id`: A string identifying the part of the UI you are measuring.
3636
* `onRender`: An [`onRender` callback](#onrender-callback) that React calls every time components within the profiled tree update. It receives information about what was rendered and how much time it took.
3737

38-
#### Caveats {/*caveats*/}
39-
40-
* Profiling adds some additional overhead, so **it is disabled in the production build by default.** To opt into production profiling, you need to enable a [special production build with profiling enabled.](https://fb.me/react-profiling)
41-
4238
---
4339

4440
### `onRender` callback {/*onrender-callback*/}
@@ -129,4 +125,3 @@ You can also nest `<Profiler>` components:
129125
Although `<Profiler>` is a lightweight component, it should be used only when necessary. Each use adds some CPU and memory overhead to an application.
130126

131127
---
132-

0 commit comments

Comments
 (0)