💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
The above error occurred in the <Bight> component Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state. Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops. false ``` getv(i){ return ( <Skt onClick={this.handleClick()} value={this.state.value}></Skt> ) } ``` true ``` getv(i){ return ( <Skt onClick={()=>this.handleClick()} value={this.state.value}></Skt> ) } ```