From 10c3a9153851e6055e8b7af6070f4d1a3794b2b0 Mon Sep 17 00:00:00 2001 From: G Akshay Date: Sun, 11 Feb 2018 02:33:08 +0530 Subject: [PATCH] Update reference-react-component.md (#609) `just before` sounds better than `immediately before`. --- content/docs/reference-react-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-react-component.md b/content/docs/reference-react-component.md index edbdfcd4..237bac74 100644 --- a/content/docs/reference-react-component.md +++ b/content/docs/reference-react-component.md @@ -186,7 +186,7 @@ If you "fork" props by using them for state, you might also want to implement [` componentWillMount() ``` -`componentWillMount()` is invoked immediately before mounting occurs. It is called before `render()`, therefore calling `setState()` synchronously in this method will not trigger an extra rendering. Generally, we recommend using the `constructor()` instead. +`componentWillMount()` is invoked just before mounting occurs. It is called before `render()`, therefore calling `setState()` synchronously in this method will not trigger an extra rendering. Generally, we recommend using the `constructor()` instead. Avoid introducing any side-effects or subscriptions in this method. For those use cases, use `componentDidMount()` instead.