Given the outcome of things, it seems very disingenuous to pretend that it wasn't a part of his election.
Those are common sense policies for most people and have nothing to do with racism. Law, order and regimented immigration processes are not racist, though people who want open borders for the express purpose of "making America brown" most definitely are racist. You should check your biases.
Maybe Clinton was just a terrible candidate and Trump was on the right side of many policy issues? No, that couldn't be the case at all. Must be the racism.