Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
150
rated 0 times [  156] [ 6]  / answers: 1 / hits: 15871  / 9 Years ago, mon, december 14, 2015, 12:00:00

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>

More From » reactjs

 Answers
12

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;
});

[#64075] Thursday, December 10, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
analiseb

Total Points: 252
Total Questions: 96
Total Answers: 106

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
analiseb questions
;