From ab6a07af6fc97fb6dca8de38a8b3c9a7593720d4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 8 Aug 2019 20:03:18 +0100 Subject: [PATCH] This is in https://github.com/reactjs/reactjs.org/pull/2208 now --- content/blog/2019-08-01-react-v-16-9.md | 35 ------------------------- 1 file changed, 35 deletions(-) delete mode 100644 content/blog/2019-08-01-react-v-16-9.md diff --git a/content/blog/2019-08-01-react-v-16-9.md b/content/blog/2019-08-01-react-v-16-9.md deleted file mode 100644 index f5de425f0f0..00000000000 --- a/content/blog/2019-08-01-react-v-16-9.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: "React v16.0.0" -author: [bvaughn] ---- - -The release date above is arbitrary and should be ignored. - -Other v16.6 release notes would go here. - -## [`React.Profiler`](/docs/profiler.html) {#profiler} - -The `Profiler` measures how often a React application renders and what the "cost" of rendering is. Its purpose is to help identify parts of an application that are slow and may benefit from [optimizations such as memoization](/docs/hooks-faq.html#how-to-memoize-calculations). - -A `Profiler` can be added anywhere in a React tree to measure the cost of rendering that part of the tree. -It requires two props: an `id` (string) and an [`onRender` callback](/docs/profiler.html#onrender-callback) (function) which React calls any time a component within the tree "commits" an update. - -```js{2,7} -render( - - - -
- - -); -``` - -To learn more about the `Profiler` and the parameters passed to the `onRender` callback, check out [the `Profiler` docs](/docs/profiler.html). - -> Note: -> -> Profiling adds some additional overhead, so **it is disabled in [the production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build)**. -> -> To opt into production profiling, React provides a special production build with profiling enabled. -> Read more about how to use this build at [fb.me/react-profiling](https://fb.me/react-profiling)