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

122
Views
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 answers
Answer question

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