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

107
Views
How to create collasped side menu bar?

I want to add a side menu bar in my react application . Initially it should be closed only icons should be visible and on clicking on one icon entire sidemenu should menu..I am doing this way But it is not closing and is not closing.. I tried out different ways but not able to achieve it

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

0

In parent component:

const [show, setShow] = React.useState(false)

return <div>{show ? <SideMenu /> : <Icon />}</div>

If I understood an issue properly.

And use onClick in Icon to change show state.

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!