Good question. The React team has called out these methods as unsafe for future use with async rendering. At the moment, they are still okay to use. But once async comes into the picture, these methods are not considered safe, since it goes outside the scope of their original purpose. I think they are trying to discourage it’s use before they introduce async rendering in the future.

Written by

Software Consultant, Author, Speaker, React Native|React|GraphQL Dev & Indian Classical Musician http://adhithiravichandran.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store