Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
When styling similar pages in React, should I extract their parts into components or just share style sheets?

I have two pages on my site which are character page and staff page and they look generally the same. But since they handle data with different structures and have minor differences, I cannot simply separate the logic with view and reuse the view across two pages. Therefore, I thought of reusing the parts that are similar (like containers). In this case, should I extract each of them into a component or just have one stylesheet which is shared across two pages?

In general, how should I handle the styles of pages which are like 90% same?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Extract the core parts into components like <header title={pass in the new title...} /><bottom /> to make it more neat

about 4 years ago · Juan Pablo Isaza Denunciar

0

Make separate Components for common components. Each component should have a separate style file. In this way, you could reuse the components and styles across the whole app. Hope you get the idea.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda