J
J
John Developer2019-10-19 20:28:33
IT education
John Developer, 2019-10-19 20:28:33

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

1 answer(s)
A
Artem, 2018-08-06
@Nizzo

By itself, few people need empty c#, of course - it's like a spherical horse in a vacuum.
Choose your stack of related technologies, study, apply.
Examples of where to move - gamedev, web, desktop, mobile, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question