Changed to the new version of React