REACT REDUX Uncaught ReferenceError

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



REACT REDUX Uncaught ReferenceError


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 .



error msg



my jsp




1 Answer
1



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/react-redux@5.0.6/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;





but i use <script src="cdnjs.cloudflare.com/ajax/libs/react-redux/4.4.5/…; ></script> instead of import
– Oliver Cheng
Aug 8 at 9:22





@OliverCheng you should edit your question and say that. I'm gonna edit my answer
– Lokuzt
Aug 8 at 9:56






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard