America is going to have to deal with the fact that, even if everyone who voted for Trump isn't a racist, they're shitty, gullible, people, who have ruined a lot of lives.
Thing is, this confuses and mangles together various issues.
1) Hillary is a bad candidate
2) Millenials and minorities not energised
3) Trump emergised rural areas
1) is subjective, and has the quagmire of emails, biased press (from Fox, the NYT, CNN, etc.), Comey letter, and the GOP attacking her for 25+ years (back to Bill's administration). She's also the GOP's rallying cry for sexists - she's a woman who doesn't know her place, and was such a bad wife, her husband cheated on her multiple times.
2) can be split between privileged Millenials who didn't want to vote for someone with better policies, because "both sides are bad", and minorities who did kinda vote for Hillary, but not as expected. Hispanics, it is noted, aren't as much of a voting block as African Americans.
3) can be split between Trump speaking to his racist base (panhandle Florida), and lying to people who think that automation can be reversed, and they can get jobs like their dads or grandads.
tl;dr - there is no single reason for this loss. Seriously!