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

167
Views
React props not auto-complete in VS Code

enter image description here

I have a functional component like above (only js). After building the library and publishing, I import into my project but vscode doesn't suggest to me which props I need to use.

Below is my setting:

enter image description here

enter image description here

vscode doesn't suggest me which props i need to use

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

0

You might want to check React TypeScript.

React JavaScript won't tell you any required props, and using TypeScript will help you achieve that.

Example:

type Data = {
  id: string;
  name: string;
  email: string;
  address: string;
}

type Props = {
  sortable?: boolean;
  data: Data[];
  filters?: any;
}

function CommonTable(props: Props) {
  // code
}

enter image description here

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!