Reputation: 479
var Provider = ReactRedux.Provider;
var connect = ReactRedux.connect;
i got error when calling to ReactRedux.Provider, but the error is pointing to brower.js and babel.js .
Upvotes: 1
Views: 94
Reputation: 10307
Since you're using CDN links. The url you provided doesn't export a valid export for what you're trying to do.
I tried a unpkg link and it worked fine.
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/[email protected]/dist/react-redux.js"></script>
With these links the ReactRedux export exists and you can access it's components. Thus what you were trying to do will work
var Provider = ReactRedux.Provider;
var connect = ReactRedux.connect;
Upvotes: 1