Understanding Presidential Elections in US

The electoral votes are decided by the popular vote in each state. One candidate wins all of the electoral votes in a state. In other words, Oregon has 8 electoral votes. If 1 million people vote for the Republican candidate and one million and ten people vote for the Democratic candidate ALL 8 electoral votes go to the democratic candidate. ................
................