Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
Diseño de rejilla de reacción: Advertencia No se puede llamar a setState en un componente que aún no está montado

Lo que estoy tratando de hacer es tener varios botones para crear diferentes elementos. El título es el mensaje de error que aparece en mi consola cuando ejecuto mi aplicación.

Este es mi enlace de codesandbox que muestra el código y el error. Haga clic en el enlace y abra la consola, el error está ahí

crear función de gráfico

 onChartItem() { /*eslint no-console: 0*/ console.log("adding", "n" + this.state.newCounter); this.setState({ // Add a new item. It must have a unique key! charts: this.state.charts.concat({ i: "n" + this.state.newCounter, x: (this.state.charts.length * 2) % (this.state.cols || 12), y: Infinity, // puts it at the bottom w: 8, h: 6 }), // Increment the counter to ensure key is always unique. newCounter: this.state.newCounter + 1 }); }

cualquier consejo es apreciado

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cambio this.onChartItem = this.onChartItem(this); a esto this.onChartItem = this.onChartItem.bind(this);

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!