Search Results

Found 1 results for "3c5fb01c0f9ef95045f709862b4b9445" across all boards searching md5.

Anonymous /g/105661912#105674482
6/22/2025, 10:34:56 PM
ReactJS question:

Is the most common way of handling an append to a list of objects that you’re rendering to actually use a <form> 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 <form> 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 <form> and e.preventDefault()? I’m just mesmerized that I’ve never seen this in the wild before.