Fixes all react legacy and deprecation warnings