What is preventDefault() in React?