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

143
Views
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 answers
Answer question

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 Report

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 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!