im new to react and I came into a problem I cannot seem to fix, Im trying to reacreate the iPhones notes app and theres this issue that when I first hit + to add a new note it doesnt get added into the state array, whats weird is that it works normally the second time I click it and so on
My 2nd issue is that theres this "activeObj" state variable which stores the clicked notes object but also normally works on the 3rd try, the first and second clicks look like this (check screenshots)
I tried changing the syntax and the structure of the functions but my skills are still limited since its my first week of doing react