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

211
Views
¿Cómo administro el estado en reacción con un componente maestro-detalle?

Estoy buscando construir la siguiente funcionalidad en un sitio similar al siguiente: https://au.indeed.com/jobs?q=no%20experience&l=Melbourne%20VIC&from=searchOnHP&vjk=6c88ada376b9317e

Lo que quiero decir es que me gustaría probar y construir dos componentes. Una lista de tarjetas a la izquierda y un panel de información a la derecha que se completa con información al hacer clic en la tarjeta de la izquierda.

¿Cuál es la forma correcta de gestionar esto? ¿Usaría el estado en el componente izquierdo y lo pasaría a través del árbol o usaría redux y enviaría el estado para representar la información?

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

0

El estado se administra encima de la lista, algo así:

 const Container = ({things}) => { const [selected,setSelected] = useState() return ( <> <ThingList things={things} onSelect={setSelected}/> <DetailView thing={selected}/> </> ) }
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!