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

124
Vistas
How to decide if a component should be controllable by its parent?

Some of the components in my APP only has the option for the its parent to provide an initial value. But beyond the initial value, the parent cannot control the component's state or value.

Is this bad design?

Is it always the case that a component be controllable by its parent?

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

0

One of the key concepts about new React hooks is allows to components has your own state. By the way, i think you should use Context API from React to shared data or state between components, also you should use Redux if you think your app it will growing in the future.

I will wait your feedback.

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