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

111
Views
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 answers
Answer question

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 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!