I wrote a simple task manager but it all falls apart when I try to manage all data from one point. (TaskManager
component)
Simply, I have a TaskManager
component which is the container of all data. Then there are Table
's which inside them there are Task
's. (All code exist down here)
I'm using
Just to clarify, on my system there are 9 tasks for first column and 2 for the next one and inside react developer tools I see my data.
Note: This is a one month old question that I just ignored till today.
Note: I'm not a pro front-end developer, I'm a big noob so if you have some advises, I'll be happy to hear them.
CodePudding user response:
Try using setState([...oldArr, newEl]) instead of just putting data there. Im a noob too btw so let's try to resolve it together, I had the same question 2 days ago and never researched on it