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

113
Views
How do I call a method in X component and then render component Y on react button click?

I am new to react and need to add a button to UI, where on button click in component A, firstly on button click, the method in component X will be called which creates a new DB entry and returns ID, and then I need to display that ID in a popup, which means I need to render a new Competent ,say Y, which will display that ID in popup.How can I achieve that?

I know adding a button and making a getting result from component X, but then how can I render them in component Y, since there is no such action associated with Button?

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!