I think to imply that Trump's victory was due completely to racist sentiments is misguided and in some sense trying to oversimplify it to cope with the decision.
In reality, based on what I've read, it seems more like the voter base where he got the biggest turnout was with the white, rural blue-collar workers, most of whom who work in industries in the rust belt or in farming or the coal regions where their signature industries have either all but gone away or have been completely rendered useless by out-sourcing, technology, etc.
That population lives hand to mouth and check to check these days having seen a large drop in their standard of living, and basically been left behind as the Country evolves and speeds ahead. They don't really have the luxury of confronting social issues, and due to their rural nature don't get all too much exposure to more than a handful of minorities.
Does fear and racism play a part in that? Sure it does. But it definitely wasn't the sole or perhaps even largest motivation, otherwise they'd have come out in droves in 2008/2012 to vote AGAINST Obama, and that didn't happen.
Trump's "Make America Great Again" BS hit a nerve with them, most likely unintended, in that it harkens them back to when they were relevant and earning a good living. Their communities are almost as homogeneously white now as they were then so I would doubt that was the most attractive aspect of that for them.
The sad part in the end is you should feel bad for these folks. Because they've in effect turned to a man they don't completely understand and they're going to be left holding the bag because coal mining and like industries in the south/rust belt/ozarks, etc. aren't coming back no matter what Trump said, and I doubt he'd really even know where to begin to try. That horse has long left the barn.