Follows up on #9853 and removes remaining React imports, as React 17 is supported and #9734 has been merged.