United took an early lead through Mateusz Klich's second attempt at a penalty after a retake but Leeds conceded two goals from set pieces via headers from Tomas Soucek and Angelo Ogbonna as the Hammers moved up to fifth.
Graham Smyth, the YEP's chief football writer, hands out the scores.
13. Jamie Shackleton (sub)
6 - A lively introduction but couldn't unbalance West Ham after that initial burst. Plenty of energy. Photo by Alex Pantling/Getty Images.
14. Tyler Roberts (sub)
5 - Came on late on for Bamford. Struggled to make an impact. Got on the ball but wasn't able to do much with it. Photo by JASON CAIRNDUFF/POOL/AFP via Getty Images.
15. Michael Oliver (referee)
8 - Not much to complain about. VAR took care of the only real controversy.
Photo by Gareth Copley/Getty Images.