diff --git a/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithNonPureChildExample.js b/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithNonPureChildExample.js index 21f7e1cf9ba2..7ea36fcfb16a 100644 --- a/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithNonPureChildExample.js +++ b/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithNonPureChildExample.js @@ -57,7 +57,7 @@ function ReRenderWithNonPureChildGoodExample(): React.Node { export default { title: 'List re-render due to not pure or memoized', description: - 'The List component is not pure in the bad example. Even though all props are not changed, it will still re-render when parent re-renders.', + 'Get horizontal scroll offset.\nThe List component is not pure in the bad example. Even though all props are not changed, it will still re-render when parent re-renders.', Bad: ReRenderWithNonPureChildBadExample, Good: ReRenderWithNonPureChildGoodExample, }; diff --git a/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithObjectPropExample.js b/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithObjectPropExample.js index b535468ed18d..5f5ab7354d3f 100644 --- a/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithObjectPropExample.js +++ b/packages/rn-tester/js/examples/Performance/performanceComparisonExamples/ReRenderWithObjectPropExample.js @@ -55,7 +55,7 @@ function ReRenderWithObjectPropGoodExample(): React.Node { export default { title: 'Re-render from new object reference in prop', description: - 'Even with pure or memoized child component, if a new object reference is passed down as prop, the child component will still re-render unnecessarily. The onScroll callback is passed without useCallback hook in the bad example and caused performance issues.', + 'Get horizontal scroll offset.\nEven with pure or memoized child component, if a new object reference is passed down as prop, the child component will still re-render unnecessarily. The onScroll callback is passed without useCallback hook in the bad example and caused performance issues.', Bad: ReRenderWithObjectPropBadExample, Good: ReRenderWithObjectPropGoodExample, };