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

189
Views
How do I render modal compoent (react-modal) using ReactDOM

I am using the library "react-modal" for Modal components. How do I render these modal components using ReactDOM in a function? I have seen some examples that work for "react-bootstrap" but not for "react-modal". I tried the following approach but it does not work. Any help would be really appreciated.

//Pseudo code.
import Modal from "react-modal";
Modal.setAppElement('#root')

<button onclick={() => {
     const response = //async call...      
     ReactDOM.render(<Modal props={response}/>)
}}/>
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!