Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

115
Vistas
i have a probleme in react proptypes.object.isRequired

In this code when i write proptypes with camel case it shows me empty page and when i write it with upper case (PropTypes) it shows me : compiled with problems Line 39:9: Typo in static class property declaration

CODE :

Contact.PropTypes = {
  data: PropTypes.object.isRequired
}

Clean contact cards with no errors using data from the contacts component

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

React components use a special property named propTypes to set up type checking and then you need to use PropTypes to define the type

It should be like this:

Contact.propTypes = {
  data: PropTypes.object.isRequired
}

And you need:

import { PropTypes } from 'prop-types';
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda