Skip to content

Commit 29fd4cc

Browse files
committed
Removed some unnecessary parens
1 parent 26daa78 commit 29fd4cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/blog/2018-02-07-update-on-async-rendering.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ Here is an example of a component that subscribes to an external event dispatche
7272

7373
Unfortunately, this can cause memory leaks for server rendering (where `componentWillUnmount` will never be called) and async rendering (where rendering might be interrupted before it completes, causing `componentWillUnmount` not to be called).
7474

75-
People often assume that `componentWillMount` and `componentWillUnmount` are paired, but that is not guaranteed. Only once `componentDidMount` has been called does React guarantee that `componentWillUnmount` will later be called (for clean up).
75+
People often assume that `componentWillMount` and `componentWillUnmount` are paired, but that is not guaranteed. Only once `componentDidMount` has been called does React guarantee that `componentWillUnmount` will later be called for clean up.
7676

77-
For this reason, the recommended way to add listeners (or subscriptions) is to use the `componentDidMount` lifecycle:
77+
For this reason, the recommended way to add listeners/subscriptions is to use the `componentDidMount` lifecycle:
7878
`embed:update-on-async-rendering/adding-event-listeners-after.js`
7979

8080
### Updating `state` based on `props`

0 commit comments

Comments
 (0)