React - Minified exception occurred

前端 未结 10 1441
离开以前
离开以前 2020-12-09 07:54

I have React js installed via NPM and using browserify to manage components in react. When an exception occurs in React, the console shows as

\"Uncau

10条回答
  •  我在风中等你
    2020-12-09 08:27

    Have you check the DOM element that you are trying render ? I had this error before due to a silly mistake. The worst part is bundle was minified. The element id is not same

    Index.html

    app.jsx

    React.DOM.render(, document.getElementById('app'))
    

提交回复
热议问题