Yes the electorate is defined by law and Trump won the electoral college. However, he did not win the popular vote. The majority of popular opinion was against Trump

blah blah blah
sore loser
win is win
those were the rules of the game
Hilary agreed to play by these rules