Este es uno de mis botones de radio:
<input type="radio" value="0" id="0" name="salary" checked={salaryRange === "0"} // Side question: is this the way to handle the active button? onChange={() => handleChange} // Round brackets here seem unnecessary />; 0 - 1.0;Y este es mi handleChange. Actualmente, no dispara en absoluto.
function handleChange( e: React.ChangeEvent<HTMLInputElement>, range: string ) { console.log("changed radio button"); }No recibo ningún error de TS. ¿Alguien puede ayudar?
Está pasando la función handleChange ref.
cambio onChange={() => handleChange}
a onChange={handleChange} o a onChange={(thatsMySweetEvent) => handleChange(thatsMySweetEvent)}