Answer the question
In order to leave comments, you need to log in
How to call a function on a nested element?
How to call the onClick function? onFocus is called all the time.
<div onFocus={onFocus}>
<input>
<div onClick={onClick} />
</div>
Answer the question
In order to leave comments, you need to log in
<div onFocus={onFocus}>
<input/>
<div onClick={onClick}>клинки по мне</div>
</div>
The div is not closed and the input in jsx is written differently
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question