From 18eff0742339c286d65eaa5cc4b9eab2ce4c1fa2 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 5 May 2017 18:03:39 +0100 Subject: [PATCH] Fix horizontal scrolling in docs (#9613) (cherry picked from commit 6facb85f853365125b10e9f0843d013184f88d2e) --- docs/docs/optimizing-performance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/optimizing-performance.md b/docs/docs/optimizing-performance.md index 7ceb23e552..76ff10d387 100644 --- a/docs/docs/optimizing-performance.md +++ b/docs/docs/optimizing-performance.md @@ -164,7 +164,7 @@ Remember that you only need to do this for production builds. You shouldn't appl In the **development** mode, you can visualize how components mount, update, and unmount, using the performance tools in supported browsers. For example: -
React components in Chrome timeline
+
React components in Chrome timeline
To do this in Chrome: @@ -203,7 +203,7 @@ If you know that in some situations your component doesn't need to update, you c Here's a subtree of components. For each one, `SCU` indicates what `shouldComponentUpdate` returned, and `vDOMEq` indicates whether the rendered React elements were equivalent. Finally, the circle's color indicates whether the component had to be reconciled or not. -
+
Since `shouldComponentUpdate` returned `false` for the subtree rooted at C2, React did not attempt to render C2, and thus didn't even have to invoke `shouldComponentUpdate` on C4 and C5.