Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Rename lifecycle methods for React v. 17+ #1231

Open
notnotzero opened this issue Apr 7, 2021 · 0 comments
Open

Rename lifecycle methods for React v. 17+ #1231

notnotzero opened this issue Apr 7, 2021 · 0 comments

Comments

@notnotzero
Copy link

The Problem

React v.17 + doesnt support methods componentWillMount and componentWillReceiveProps. Please, replace them with UNSAFE_componentWillReceiveProps and UNSAFE_componentWillMount

Steps to Reproduce

Expected Behavior

Actual Behavior

Reproducible Code Example

(please fork from this CodePen template or this CodeSandbox template)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant