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

199
Vistas
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 Respuestas
Responde la pregunta

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