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

169
Views
¿Cómo usar una clase abstracta como tipo de un componente React en TypeScript?

¿Cómo se puede usar aquí la clase abstracta 'Base' como una definición de tipo?

 abstract class Base extends React.Component { /* */ } class A extends React.Component<{ ComponentToUse: Base }> { render() { const { ComponentToUse } = this.props; // The following line gives this compile error: // JSX element type 'Base' does not have any construct or call signatures. ts(2604) return (<ComponentToUse />); } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cambiar los accesorios de

 class A extends React.Component<{ ComponentToUse: Base }> {

a

 class A extends React.Component<{ ComponentToUse: typeof Base }> {

Consulte los documentos de TS y esta pregunta para obtener más información.

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!