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

169
Vistas
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 Respuestas
Responde la pregunta

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