D
D
d-virt2016-05-28 21:17:33
JavaScript
d-virt, 2016-05-28 21:17:33

How to correctly change the state of a react+redux component?

Hello.
Code: https://github.com/kozlikov/test
PS The project is very small.
The trouble is that when you click on the button

<button onClick={() => actions.add(Math.random())}>
            {todo.value}
        </button>;

the state of the component test/src/components/Todo.jsxbutton does not change in the component.
PS action works and the application does not give any errors.
Please clarify what I missed?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2016-05-28
@d-virt

https://github.com/kozlikov/test/blob/master/src/s...
Redux-logger not connected correctly. Read documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question