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.
13. Jack Harrison (sub)
5 - Unable to make the possession and territory count for much. Like Alioski, gave Leeds energy and more of a threat than Costa had.
Photo by Julian Finney/Getty Images.
14. Rodrigo (sub)
6 - A couple of sharp bits of play. Some nice movement. Looked rusty, however and couldn't break West Ham down.
Photo by MICHAEL STEELE/POOL/AFP via Getty Images.
15. Mike Dean (referee)
5 - Somehow decided a Phillips' ball-winning challenge was a yellow card, got a few other calls wrong.
Photo by Laurence Griffiths/Getty Images.