首页 文章

这款Redux Boilerplate出了什么问题?

提问于
浏览
0

我有一些错误 .

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

Uncaught Invariant Violation:无法在“Connect(Counter)”的上下文或道具中找到“store” . 将根组件包装在a中,或者将“store”显式传递为“Connect(Counter)”的prop .

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

但这没用 .

请帮忙 .

1 回答

  • 2

    在你的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>
    

相关问题