What does calling preventDefault() on an event do? How is this enforced?

Prevent defaults helps skipping the default behaviour on any component. Like in radio Button when we will click it will get selected, but if we want only the skin to be changed we can use preventDefault().

No comments:

Post a Comment