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

91
Views
how to import child's state to parent component

I want to import the child state to my parent component in order to change DOM, but I don't know if its possible or how to do it shall I use Redux in this case ?? if not what possibly I must do to do that

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You can create state in parent component and pass it to child component (state and setState) via props. In this case, the parent and child components will be able to use this state.

about 4 years ago · Juan Pablo Isaza Report

0

Please describe your case more specifically, then we will be able to propose solution.

Depending on what is your case you can use ContextApi, lifting the state up by some function called in child or as you suggested - Redux.

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!