What I am trying to say here is that, a person, through the course of his life, meets strangers and makes acquaintances. In this process, there are some inhibitions at the beginning, but soon these are overcome. But this is not the case always. Some people find it difficult to mix with people who they deem are different from them; strangers from a different land. This irrational fear of strangers or foreigners is termed as xenophobia. There are various reasons that lead to this fear, and it brings out a range of emotions that vary from a biased attitude to violence.
There can be a presence of 'one bad apple' among the incoming populace. But generalizing one negative experience from one foreigner or a bunch of them, and applying it to every stranger leads to xenophobia. Further, this hatred is passed along among the locals. Along with this, the hatred towards foreigners can be a reciprocated reaction when the roles were reversed.
The incoming strangers are also deemed as a danger to the culture, traditions, and customs of the locals. This is also the reason for the spread of xenophobia, as foreigners are seen as a threat to the local heritage and legacy. The migrations result in sharing of resources, including the natural ones, which can lead to a stress on the economy and the general lifestyle of the natives.
Xenophobic people find it stressful when they are exposed to the cultures or people that are unknown to them or they perceive as strange. They are anxious when dealing with people they are not comfortable with, and try to establish a supremacy over them. Those who are xenophobic do not easily trust, are hostility in their behavior, and can get abusive when dealing with those whom they hate or are afraid of.
These attacks in South Africa were prominently against the Nigerians. Nigerians themselves are not unfamiliar with this kind of hatred towards foreigners, as the nation had seen a similar spate of killings in the 1980s, when many people of Ghanaian origin were charred to death.
One of the negative effects of xenophobia on a community is that, it will, more or less, turn into a closed one, where there will be no introduction of new ideologies, innovations, and thought processes. It will also have long-term effects on the tourists as well, who will be advised against and also prefer not to visit such a volatile region. This will result in the loss of a chunk of revenue, and various industries that come associated with the tourism sector will be hit.