“Uncaught TypeError: React.createClass is not a function” in Render.js file (electron app)

后端 未结 3 1821
再見小時候
再見小時候 2021-02-10 16:47

I\'m new to react.js and I am trying to get this code to replace one line in an html file inside an electron app with whatever is in return inside the MainInterface variable

3条回答
  •  故里飘歌
    2021-02-10 16:52

    export default class App extends React.Component{
        render() {
            return(
               

    its works

    ); } };

    this works for me, checkout this ReactJs CreateClass is not a function thus its by exports React.component instead of using React.createClass

提交回复
热议问题