Ad
Uncaught TypeError: Cannot Read Property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' Of Undefined
I get
Uncaught TypeError occurs (Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined)
when I am using React JS
<script src="res/build/react-min.js"></script>
<script src="res/build/react-dom.min.js"></script>
Ad
Answer
The error is thrown because the react-dom cannot find an instance of React. I suppose this has something to do with the fact you are using res/build/react-min.js
instead of res/build/react.min.js
Kudos for the function name in the react-dom tho:
(function(React) {
return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
});
Ad
source: stackoverflow.com
Related Questions
- → How to update data attribute on Ajax complete
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → DropzoneJS & Laravel - Output form validation errors
- → Import statement and Babel
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM
Ad