he won them because of interstate crosscheck.
Google "Greg Palast Interstate Crosscheck".
Looking back, I do see a big difference in campaign strategy. Trump utilized his campaign and appearances based on the electoral college. Get 270 was all he was interested in. Hillary was trying to get more electoral votes than Obama did. She spent a lot of time, energy and money attempting to win Georgia, Arizona and Utah. Resources that if were spent protecting her so called blue wall, she would be sitting in the White House today. Of course that is hindsight.
I also noticed that Hillary did between 3-5 points worse than Obama did in almost all voting groups or blocks. Some examples that stand out. Obama 2012, Hillary 2016
Men Obama 45% Clinton 41%
Women Obama 55% Clinton 54%
Whites Obama 39% Clinton 37%
Blacks Obama 93% Clinton 89%
Hispanics Obama Obama 71% Clinton 66%
Asian Obama 73% Clinton 65%
Age 18-29 Obama 60% Clinton 55%
30-44 Obama 52% Clinton 51%
45-64 Obama 47% Clinton 44%
65-older Obama 44% Clinton 45% Clinton by one
Union household Obama 58% Clinton 51%
Democrats Obama 92% Clinton 89%
Independents Obama 45% Clinton 42%
Republicans Obama 6% Clinton 8% Clinton by two
Income less than 50,000 Obama 60% Clinton 53%
50,000-90,000 Obama 46% Clinton 46% tie
Over 90,000 Obama 44% Clinton 47% Clinton by three.
And so it goes.