我下面的終極版的教程,並試圖包括Provider
我使用JSbin「的ReferenceError:ReactRedux沒有定義
我的HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script scr="https://cdnjs.cloudflare.com/ajax/libs/react-redux/5.0.5/react-redux.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script src="https://wzrd.in/standalone/[email protected]"></script>
<script src="https://wzrd.in/standalone/[email protected]"></script>
<title>JS Bin</title>
<script src="https://fb/react-0.14.3.js"></script>
<script src="https://fb/react-dom-0.14.3.js"></script>
</head>
<body>
<div id='root'></div>
</body>
</html>
JS文件:
const { Provider } = ReactRedux;
但是我得到的錯誤:
"ReferenceError: ReactRedux is not defined
我在做什麼錯?
這只是一個錯字('scr',而不是'src'),投票關閉的錯字。 –