Fix breaking change in react