Browse Source

Update legacy-event-pooling.md (#3380)

main
zytjs 4 years ago
committed by GitHub
parent
commit
fc6e864f1d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/legacy-event-pooling.md

2
content/docs/legacy-event-pooling.md

@ -12,7 +12,7 @@ permalink: docs/legacy-event-pooling.html
>
>[Read more](/blog/2020/08/10/react-v17-rc.html#no-event-pooling) about this change in React 17.
The [`SyntheticEvent`](/docs/events.html) objects are pooled. This means that the `SyntheticEvent` object will be reused and all properties will be nullified after the event event handler has been called. For example, this won't work:
The [`SyntheticEvent`](/docs/events.html) objects are pooled. This means that the `SyntheticEvent` object will be reused and all properties will be nullified after the event handler has been called. For example, this won't work:
```javascript
function handleChange(e) {

Loading…
Cancel
Save