ReactJS question:

Is the most common way of handling an append to a list of objects that you’re rendering to actually use a
attribute and put e.preventDefault() into the event listener?
source: https://www.w3schools.com/react/react_forms.asp

I’ve been writing reactJS for more than 5 years and literally never seen this in the wild. Usually, I’ve seen that you just don’t use and then you don’t have to do e.preventDefault(), right?

Asking because I recently saw this in an online technical screening interview.
Do any of you guys actually use and e.preventDefault()? I’m just mesmerized that I’ve never seen this in the wild before.