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

145
Vistas
When exporting components (e.g. React), how to keep track of "which components are importing this component"?

In upstream components like App.js, I can identify the list of child components being imported:

import SorryForDumbQuestion from './SorryForDumbQuestion';

But I'm struggling the other way around. When I look inside SorryForDumbQuestion.js there is an export code saying "I want to export this component" but it doesn't tell me where. Rightfully so, especially for reusable components. But in reality I want to know the consumers, and I don't know the best way to do that.

Best may be subjective as there are many ways of doing this, but is there an established good-practice way? For example I could:

  1. comment them when exporting
export default SorryForDumbExamples;
// to be used by App.js
  1. rely on IDE

  2. create documentation

  3. remember this in my brain

about 4 years ago · Juan Pablo Isaza
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