From 9215b72a4a5fff9d77a5df8adeff7ec0e5de86b2 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) --- docs/optimizing-performance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/optimizing-performance.md b/docs/optimizing-performance.md index 7ceb23e55..76ff10d38 100644 --- a/docs/optimizing-performance.md +++ b/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.