Hate is a result of fear. First we associate fear with an event and often a person who perpetrated or was associated (even if incorrectly associated) with a fear causing event.
Fear leads to anger and resentment. We don't like being afraid and we don't, in general, being made to be afraid.
Hate is what we are taught by others and even by ourselves when we seek to find or single out others to vent anger, frustration, resentment and all the other negative feelings and notions we have.
Hate is polarizing. It creates a viewpoint of "them vs us" or "you vs me".
Self discipline, self control at the point of first feeling fear can prevent hate in us.
Using reasoning and being rational can remove hate from us.
There's nothing wrong with feeling angry or afraid or resentful. However, we do not have to let those emotions take charge of our thoughts. We do not have to let them control what we think and do.
We are not simple creatures relying only on instinct and primal urges to determine our thinking and behavior.
We have Free Will. We have the power to choose how we think and behave. We are able to overcome emotions, instincts ages urges with reasoning self discipline and rational thought.
We don't have to hate. We can be better people.