这个 Redux 样板有什么问题?
What is wrong with this Redux Boilerplate?
我有一些错误。
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>
我有一些错误。
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>