From 2cb7637607344cb1e26ca15fdbffdde896cceb53 Mon Sep 17 00:00:00 2001 From: "Snowmanzzz(Zhengzhong Zhao)" Date: Thu, 12 Jan 2017 22:30:43 +0800 Subject: [PATCH] Update handling-events.md (#8762) * Update handling-events.md * Update handling-events.md --- docs/docs/handling-events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/handling-events.md b/docs/docs/handling-events.md index ab3d390507..27683bf887 100644 --- a/docs/docs/handling-events.md +++ b/docs/docs/handling-events.md @@ -138,4 +138,4 @@ class LoggingButton extends React.Component { } ``` -The problem with this syntax is that a different callback is created each time the `LoggingButton` renders. In most cases, this is fine. However, if this callback is passed as a prop to lower components, those components might do an extra re-rendering. We generally recommend binding in the constructor to avoid this sort of performance problem. +The problem with this syntax is that a different callback is created each time the `LoggingButton` renders. In most cases, this is fine. However, if this callback is passed as a prop to lower components, those components might do an extra re-rendering. We generally recommend binding in the constructor or using the property initializer syntax, to avoid this sort of performance problem.