Answer the question
In order to leave comments, you need to log in
Why doesn't React redraw the tree when the state changes?
I'm learning React and still at the initial stage.
For practice, I'm trying to make a small copy of the To Do List of applications.
Here is my git rep.: https://github.com/GeorgeRudenko/my_app_todo
The bottom line is that I have a function that adds a new task, the function itself works but only if it is called before the page is initially rendered. As an option, I tried to make a separate file that is responsible for rendering and tried to access it when executing the function of adding a new task, but the page / components itself does not redraw if I add a new task from the page ... but the state itself changes and I check it through consolelog.
The state file stores the state itself and the function for adding a task, the path to it is ./src/Redux/state
The function on the page I call in ./src/App/Control/components/Column/Control.jsx
Where is my mistake?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question