How can i integrate this 'onChange={(e) => setFecha(e.target.value)}' and this 'onChange={handleChange}' in a same input? PLEASE!! thx

Viewed 24

This is my code and I want to integrate the code in this input, i was looking for promise but I don't understand and im so confusing:

<input
    value={fecha}
    onChange={(e) => setFecha(e.target.value)}
    type='number'
    className='form-control'
    minlength={4}
    maxlength={5}
/>;

and i want tu plus this:

onChange={handleChange}

THX!!

0 Answers
Related