REACT REDUX Uncaught ReferenceError
Clash 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 .
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;
@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.
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