I am working on event manager app and trying to assign unique id via uuid to each event. Somehow the individual state object is not storing the eventId but every other detail:
Sorry for the late reply and thank you for your reply. I tried the async way and it did not help.
Weirdly, if I set the event Id in any other method like handleEventName(onClick), it works. But when I try to set the event id in handleSubmitForm(onSubmit), the setState doesn’t seem to work.