[Redux] - 9. React + Redux

preview_player
Показать описание
[Redux] - 9. React + Redux

🍣 Chia sẻ vì cộng đồng sinh viên Việt Nam

Рекомендации по теме
Комментарии
Автор

em code theo mà nó bị lỗi
Error: Could not find "store" in the context of "Connect(TodoApp)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(TodoApp) in connect options.

hoangminh
Автор

Vậy cái này có phải dùng để thay thế Context Provider Comumer không anh ?

giakhoinguyen
Автор

E làm theo video đến đoạn thay TodoApp component của folder bindings thì ko thấy nó render dc UI a.

hoangdung
Автор

Anh Thịnh quên show ra phần < Provider > của ‘react-redux’ rồi ạ.

khangly
Автор

Bây giờ dùng useSelector thay cho connect tốt hơn

anhvt
Автор

Thời điểm này ai mà xem thì thằng React Redux đã được hỗ trợ bằng Provider và các hooks useSelector, useDispatch rồi chứ không làm bằng cách này nữa nha.

Huydev