React team recently published a blogpost: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
TL;DR: cWM, cWRP, and cWU methods are considered unsafe for future async rendering and will be deprecated soon. The recommended way for open source maintainers to deal with it is to use react-lifecycles-compat package and migrate to new static getDerivedStateToProps method
@Hypnosphi @diasbruno can I take this up? I am guessing this involves polyfilling the components so that they can be used with the current react version?
Sure, @kaushik94. Follow the react-lifecycles-compat guide and everything should be fine.
Plus ModalPortal still uses cWRP: https://github.com/reactjs/react-modal/blob/master/src/components/ModalPortal.js#L79
Most helpful comment
@Hypnosphi @diasbruno can I take this up? I am guessing this involves polyfilling the components so that they can be used with the current react version?