Goals from Jesse Lingard and Craig Dawson put the Hammers 2-0 up at half-time and Leeds then squandered several good opportunities after the break as the Hammers moved fifth.
The Whites have now gone 16 games without winning in the capital and Graham Smyth, the YEP's chief football writer, hands out the scores.
7. Mateusz Klich
3 - Unable to offer any kind of control in the middle or even much of a presence in the attacking or defending sense. Replaced at the break.
Photo by Ian Walton - Pool/Getty Images.
8. Helder Costa
4 - Started brightly enough and then faded completely. Looked shy of confidence.
Photo by JULIAN FINNEY/POOL/AFP via Getty Images.
9. Raphinha
6 - Looked the best goal threat for Leeds, created danger but couldn't find the killer ball or shot. Corner deliveries were poor.
Photo by ANDY RAIN/POOL/AFP via Getty Images.
10. Tyler Roberts
5 - Some nice movement but too many poor touches or passes that stopped Leeds attacks. Replaced on the hour.
Photo by JULIAN FINNEY/POOL/AFP via Getty Images.
11. Patrick Bamford
4 - Guilty of two awful finishes when most would have put their house on him to score. His all-round play wasn't anywhere near his best level.
Photo by ANDY RAIN/POOL/AFP via Getty Images.
12. Gjanni Alioski (sub)
6 - Gave Leeds energy on the left, created some danger too.
Photo by LAURENCE GRIFFITHS/POOL/AFP via Getty Images.