Reputation: 1548
Reajctjs official doc is saying componentWillMount() is deprecated.its unsafe to use. so in my current live project i have used this in many container. is there any chances it will break my live system in production?please advise,Thanks.
Upvotes: 0
Views: 38
Reputation: 22209
As mentioned in the docs
This lifecycle was previously named
componentWillMount
. That name will continue to work until version 17.
You can transform your files before that either manually or by using react-codemod
Upvotes: 1