Has everything to do with not voting.You do realize he lost the popular vote right? Meaning more people voted against him than for him (over 3 million to be exact) him winning the electoral votes in majority racist states doesn't have anything to do with not voting.
How Trump won the presidency with razor-thin margins in swing states
https://www.washingtonpost.com/graphics/politics/2016-election/swing-state-margins/
This election was effectively decided by 107,000 people in these three states. Trump won the popular vote there by that combined amount. That amounts to 0.09 percent of all votes cast in this election.
Pennsylvania
Trump won by 68,236 votes
Michigan
11,837 votes
Wisconsin
27,257 votes