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

160
Views
¿Hay alguna forma de seleccionar la opción cuando el usuario hace clic en el menú desplegable y al actualizar se debe mostrar la misma opción seleccionada en html/javascript/reactj.s?

importar React,{useState} de 'react' importar Api de '../../api/api'

const Select = ({data}) => { const [opt,setOpt]=useState('')

 const handleChange=(e)=>{ setOpt(e.target.value) } return ( <> <select onChange={(e) => handleChange(e)}> {data.map(i=><> <option selected={opt==i.id} value={i.id}>{i.name}</option> </>)} </select> </> )

} exportar por defecto Seleccionar

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!