gpt4 book ai didi

javascript - 这个 Redux 样板有什么问题?

转载 作者:行者123 更新时间:2023-12-02 15:00:14 24 4
gpt4 key购买 nike

我有一些错误。

https://jsbin.com/rapagaw/1/edit?html,js,output

Uncaught Invariant Violation: Could not find "store" in either the context or props of "Connect(Counter)". Either wrap the root component in a , or explicitly pass "store" as a prop to "Connect(Counter)".

我读到https://github.com/reactjs/react-redux/blob/master/docs/troubleshooting.md#troubleshooting

但是没有用。

请帮忙。

最佳答案

在您的 html 中拉入最新版本的 React:

改变

<script src="//fb.me/react-with-addons-0.13.3.js"></script>

<script src="//fb.me/react-with-addons-0.14.3.js"></script>

关于javascript - 这个 Redux 样板有什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35479894/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com