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

97
Views
Cree un componente reutilizable en Reach que tome las mismas entradas pero con estilos diferentes

¿Cómo se hace reaccionar un componente que toma diferentes nombres de clase?

Por ejemplo, tengamos un componente reutilizable que tome una imagen y un texto. Quiero usar este componente en 2 páginas diferentes pero quiero diferentes tamaños de fuente para el texto (18px y 24px).

Creo el componente y le paso el texto y la imagen. Pero, ¿cómo cambio el estilo?

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

const Reusable = ({styles, text , imgUrl}) => { return ( <img src={imgUrl} alt={text} style={{...styles}} /> ) }
about 4 years ago · Santiago Gelvez 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!