@samitouri / QOS-React-2 / commits / 2cb7637607

Update handling-events.md (#8762)

* Update handling-events.md * Update handling-events.md

Snowmanzzz(Zhengzhong Zhao) committed Jan 12, 2017 at 22:30 UTC 2cb7637607344cb1e26ca15fdbffdde896cceb53
1 file changed +1 -1
docs/docs/handling-events.md
+1 -1
@@ -138,4 +138,4 @@ class LoggingButton extends React.Component {
138 }
139 ```
140
141 -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.
141 +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.