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

74
Views
How to update the data of child app inside parent app using Iframe

I have a react project name parent which is running on port 3000 and another project name child which is running on port 3001. In the child app, I have a counter button which I rendered it inside the parent app using an iframe. The counter is working fine but the value of the child app is not updating. However, I am calling this the parent project.

Heare is my code

parents.js

 return (
    <div className="App">
      This is Parent app

      <Iframe url="http://localhost:3001/"
        width="450px"
        height="450px"
        id="myId"
        className="childApp"
        />
    </div>
  );


Child.js

  const [number, setNumber] = useState(0)

  return (
    <div className="App">
      This is Child app
      {number}
      <button onClick={() => setNumber(number + 1)}>Click me</button>
    </div>
  );
about 4 years ago · Juan Pablo Isaza
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!