“Uncaught TypeError: React.createClass is not a function” in Render.js file (electron app)
问题 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 This is my Render.js File var React = require('react'); var ReactDOM = require('react-dom'); var $ = jQuery = require('jquery'); var bootstrap = require('bootstrap'); //var createReactClass = require('create-react-class'); var MainInterface = React.createClass({ render: function() { return( <h1>SUCCESSSSSSSSSSS</h1> ); }/