Having worked with SSR I might assume that shipping all components in client bunle might be cheaper traffic-wise but more expensive on the first load. Honestly, with aggressive bundle splitting and lazy loading you don't have to have a huge budle you serve the clients on the first load. The chunks of routes and lower viewport components load lazily as soon as the whole page is scaffolded and there's data reusability there. Everything you serve from the server as raw html stream or jsx converted to what he showed here - don't forget there's a network penalty for that! Dan in his speech mentioned 23% bundle reduction, well, you'll download even more jumping from page to page eventually. Or not. Especially if you use a lot of hybrid components without client/server extension prefix - you'll pay twice for those. Faster initial pageloads (css sent from server?) and security concerns - probably yes. But I assume I'tll take a Next.js and such to set it up properly, rather than a freelance solo or a team of React middle devs struggling with putting all the pieces together correctly in the reality of current dev-community
Great video!! I have been seeing people saying DONT render private routes with SSR. Only render public routes with SSR. Is it true? Of course on private routes you don't care about SEO. But I do care about faster performance. Because you did render private todos from server components.
@@leerob it's also not for the flickering but for motion also, when you moved your hands noticed some jitters so could be that shutter speed did not match fps like 24 = 1/50
Hey Lee, I'm enjoying your videos, you're very thorough and well explained. Do you have current material because I just getting your videos from 2 years ago.. Thanks!
Hi Lee, good video. could you helpme about doubt? i am doing some tests with nextjs an i have a doubt. I receive a post request with data json that from an external service when I upload some files. I listen the post request that they send me to my endpoint api within NextJs and I can see the data. But I can't pass this data to the client side, to change a state. How would you do it. Thanks for the help.
@@leerob i mean does SSR really replace everything django has to offer? especially the model layer? can you build for example a youtube or twitter clone with Next? Optimally?
@@chipdarip45 Next.js !== SSR. You can do SSR with Next.js, but it's an entire framework for building React applications. Yes, you can build a RU-vid or Twitter clone. tiktok.com is built with Next.js.