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

162
Views
Cómo alternar entre tres textos que se muestran en el mismo lugar con transición

Tengo tres filas con el componente Tipografía. Quiero mostrar la primera fila, luego alternar con la segunda, luego con la tercera y luego de regreso con la primera.

Deben mostrarse en el mismo lugar, y solo uno a la vez.

 <Typography>Welcome.</Typography> <Typography>Willkommen.</Typography> <Typography>Bem-vindo.</Typography>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

const Which = () => { const [which, setWhich] = useState(1); useEffect(() => { setTimeout(() => { setWhich(state => (state < 3 ? state + 1 : 1)); }, 3000); }, []); return ( <div> { which === 1 && <div>Welcome</div> } { which === 2 && <div>Willkommen</div> } { which === 3 && <div>Bem-vindo</div> } </div> ); }
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!