Newcastle enjoyed plenty of the ball, but was unable to do enough with it to get something out of the game and was hit repeatedly on the counterattack as Hernandez, Marko Arnautovic, and Anderson picked it off at will.
Hernandez was recalled by West Ham manager Manuel Pellegrini and took his tally of Premier League goals to 48 with an opportunistic strike in the 11th minute and a near finish in the 63rd. His first came when he drifted away to the far post and met a right-wing cross from Robert Snodgrass with a steered finish from six meters out.
Hernandez missed two more good chances before doubling West Ham's lead, running onto Arnautovic's flick-on and beating the advancing goalkeeper Martin Dubravka with ease. Anderson brushed aside defender Fabian Schar after running on to substitute Jack Wilshere's pass and found the back of the net for a late third goal.
More AP English soccer: https://apnews.com/tag/PremierLeague and https://twitter.com/AP_Sports