remove warnings from react