Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

123
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda