How should you react to a racist statement about a friend or family member?

Laugh to lighten the atmosphere I think you should respectfully disagree with the statement and tell them that you'd appreciate them refraining from any further racial comments.