💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` ERROR in ./src/index.jsx Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: E:/Vue7/react108/src/index.jsx: super() outside of class constructor (6:2) 4 | class Index extends React.Component({ 5 | constructor(props){ > 6 | super(props); | ^ 7 | } 8 | render(){ 9 | return( BabelLoaderError: SyntaxError: E:/Vue7/react108/src/index.jsx: super() outside of class constructor (6:2) 4 | class Index extends React.Component({ 5 | constructor(props){ > 6 | super(props); | ^ 7 | } 8 | render(){ 9 | return( at transpile (E:\Vue7\react108\node_modules\babel-loader\lib\index.js:65:13) at Object.module.exports (E:\Vue7\react108\node_modules\babel-loader\lib\index.js:173:20) ``` ``` class Index extends React.Component({ constructor(props){ super(props); } render(){ return( <div className="container"> <h1>Hello React</h1> </div> ) } }) ``` ``` class Index extends React.Component{ constructor(props){ super(props); } render(){ return( <div className="container"> <h1>Hello React</h1> </div> ) } } ```