Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

253
Visualizações
Is this the right way to split code with react JS

Currently, I am building reusable table components and each column has its own functionality and I have to deal with a lot of components.

I am splitting every single piece of the component into a separate file and exporting it, but, by the end, I got about 25 files for rendering the table.

I am just wondering is it the right way for splitting the code and the components and make them reusable is by creating more and more files and small chunks? I am using TS.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Well the answer could differ people to people, But what I think to make our application scalable we make components only to reuse them for later, if you think at some point you will have to reuse the columns of your table somewhere else in the application you cannot right that logic again and again right? so that's where you can make the component only for the parts where you think you would need that component/logic again

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda