Answer the question
In order to leave comments, you need to log in
What's wrong with state?
https://codepen.io/Jonson/pen/GEmGBq
The question is, in general, the
Modal window appears only from the 3rd click...
And I can't understand why at all...
Can someone explain what I'm doing wrong?
Answer the question
In order to leave comments, you need to log in
Modal does not need state at all - https://codepen.io/anon/pen/bRWOKG?editors=0010
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question