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

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

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