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

194
Visualizações
Are all React components sent to the client browser in the response of first hit to the website?

I have built a website in React which has different components. I make those components visible/invisible based on the role of the logged-in user. Also, I have used react router. My doubt is are all of those components sent to the user (client browser) when the user hits the website first time itself (and then show/hide them as per user role and navigate across them using react router)? If yes, is it a good practice (performance and security wise), if not what is standard approach.

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

0

It is not a good practice send to user all in one bundle. For example admin panel (possibly has vulnerable code). You should use react lazy to send components only after login based on user role. If we talk about performance it also the best split bundle to the chunks for fastest first load.

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