From d7e9a52d7d45e13b223b930db3c4c662b1b85389 Mon Sep 17 00:00:00 2001 From: Dan Green Date: Thu, 16 Jan 2020 12:21:09 -0500 Subject: [PATCH] Updated strict-mode docs to use `UNSAFE_*` lifecycle method names (#2683) * Updated strict-mode docs to use UNSAFE_ method names The strict mode docs still reference the old `componentWill*` lifecycle method names, this updates them to be `UNSAFE_componentWill*` * Tweaked docs to mention both unsafe lifecycle names Co-authored-by: Brian Vaughn --- content/docs/strict-mode.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/strict-mode.md b/content/docs/strict-mode.md index e803a32d..b7d8b647 100644 --- a/content/docs/strict-mode.md +++ b/content/docs/strict-mode.md @@ -87,9 +87,9 @@ The commit phase is usually very fast, but rendering can be slow. For this reaso Render phase lifecycles include the following class component methods: * `constructor` -* `componentWillMount` -* `componentWillReceiveProps` -* `componentWillUpdate` +* `componentWillMount` (or `UNSAFE_componentWillMount`) +* `componentWillReceiveProps` (or `UNSAFE_componentWillReceiveProps`) +* `componentWillUpdate` (or `UNSAFE_componentWillUpdate`) * `getDerivedStateFromProps` * `shouldComponentUpdate` * `render`