How do you deal with other people making kinda racist comments?

Man today at work I was hanging out with those two girls and well both expressed their fears of uhm black people.

Like we are all withe chicks and I tried to understand where they were coming from and tried to take their fear and talk with them.
(One was robbed in the past from a group of black guys, in the middle of the night and like I understand her fear in that case and the other one comes from another country and always only interacted with withe people and has prejudice)

But I never had a situation like that and I was really overwhelmed.
I have a few childhood friends who are black and when I'm hyped, giirl you will see what I'm talking about but like even when hanging out with them, I actually never really encountered a racist situation.
Or even going out with my ex (he was latino but on dark side lol) once someone said something to him but it was for him so easy to just dismiss the situation and so I didn't see a problem, you know.

How do you all do it?
Updates
+1 y
Or I have a friend who is Asian and I had more racist situations while being out with her but we would react with humor to it or I would nearly start a fight. But that's that lol
Updates
+1 y
Okay I have already talked with both of them and tried to take away their fear a little. My Question here is not for advice for that situation, but more an overall question on how you all deal with ignorant and kinda racist/racist comments, cause I haven't really experienced situations like that.
How do you deal with other people making kinda racist comments?
Post Opinion