G
G
Gabe Jonson2017-06-21 13:05:58
React
Gabe Jonson, 2017-06-21 13:05:58

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

1 answer(s)
A
Alexey Ukolov, 2017-06-21
@gabejonson

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 question

Ask a Question

731 491 924 answers to any question