You don’t need this in React.js

  Рет қаралды 9,153

Mehul - Codedamn

Mehul - Codedamn

Күн бұрын

Пікірлер: 40
@sahilaggarwal2004
@sahilaggarwal2004 11 ай бұрын
Finally someone talked about the problems with RSC! Thanks a lot!
@sealone777
@sealone777 11 ай бұрын
That’s interesting perspective and I feel the same about SSR. It’s incremental improvements. I’m not sure if using nextjs is considered vendor lock as you can deploy anywhere using docker. Didn’t really consider the cost side of things and you are absolutely right.
@dechobarca
@dechobarca 11 ай бұрын
Hey man, I saw your video on Bun the other day, and now this. Just wanted to say I appreciate your honest thoughts on these topics, instead of just follwing the latest hype. Cheers!
@MattHeslington
@MattHeslington 11 ай бұрын
Same here!
@hrsikeisa
@hrsikeisa 11 ай бұрын
bruh yes, Mehul has to run a business and does our portion of due diligence before diving into any of the latest tech hype. For this reason I value Mehul's opinions over many other tech influencer who are riding latest hypes for views. Also I can now actually appreciate that Codamn is not just a course selling platform it's more of a tech company - so many awesome features GPT-4 integrations, Sandboxes, interactive learning (especially the AWS course) ... awesome stuff.
@neociber24
@neociber24 11 ай бұрын
If a component needs data from the server anyways, moving the component to the server instead of making a request from the client could make sense. I like this new model because a component can get the data it needs directly instead of passing it down with multiple context but still don't know how much difference it makes to move the computation to the server.
@kalpeshgajare8106
@kalpeshgajare8106 8 ай бұрын
need to explore this
@sid06
@sid06 11 ай бұрын
Thank you. These videos are invaluable (this one and Prisma).
@shivangrathore
@shivangrathore 11 ай бұрын
rsc is good for making in blogs/articles kind of websites, where crawlers/spiders needs to visit the site.
@neociber24
@neociber24 11 ай бұрын
For sure we need more frameworks to use RSC just being Vercel locks you in.
@Hanuman_hun_mai
@Hanuman_hun_mai 11 ай бұрын
Sir I believe that using RSC in next.js is a really great boost to developer experience , if we develop our projects using React Server Components than we can all together eliminate use of state management libraries (as state management is simpler when you use RSC) and it also simplifies the data fetching patterns, even when creating a full stack app it feels like we are just writing react which we are used to.
@neociber24
@neociber24 11 ай бұрын
That's something I don't see people talk enough. With RSC the component can get the data directly instead of loading on the root and pass it down with context. The downside with that is that you need deduping if multiple components need to make the same query to the db
@Gina_DT
@Gina_DT 11 ай бұрын
Subscribed and appreciated
@imkir4n
@imkir4n 11 ай бұрын
Ahh thats for sharing these infos
@clamentjohn
@clamentjohn 11 ай бұрын
How can we static render a portion of the page and make the rest dynamic? Isn't that SSR? So isn't Codedamb using SSR and using vercel compute to generate the dashboard page?
@neociber24
@neociber24 11 ай бұрын
You can send an empty shell (SSR) and them fetch the data from the client. With RSC you don't fetch but do the compute on the server.
@imkir4n
@imkir4n 11 ай бұрын
so does that mean to use page router?
@siddhantota2857
@siddhantota2857 11 ай бұрын
but what about seo?
@rakib_bhai74
@rakib_bhai74 11 ай бұрын
NextJs is modern PHP 😂😂
@justine_chang39
@justine_chang39 11 ай бұрын
totally agree with everything 👍👍
@cripz4203
@cripz4203 11 ай бұрын
Would server side rendering be better comparatively for rendering charts and 3d models?
@janyajoshi
@janyajoshi 11 ай бұрын
I think this is a valid case for SSR
@dinoscheidt
@dinoscheidt 11 ай бұрын
3D models are rendered into a canvas element, so it’s pure JS (for simplicity sake) on the client side. There is no HTML to pre render. If you have SVG charts that really take heavy compute to generate, like graph network charts, it could maybe make sense if it needs to be available instantly and can be cached on the server. However, avg phones and computers are multi core power houses compared to the tiny virtual server processes like you’d get with i.e. vercel… so if it is real time… you actually wait longer to get that hyper complicated SVG tree than computing it on the client.
@mohitkumar-jv2bx
@mohitkumar-jv2bx 11 ай бұрын
I think he explained it wrongly. I i think he explained SSR as RSC
@copilotcoder
@copilotcoder 11 ай бұрын
Nope he explained right....SSR is basically the the html getting generated using js on the server and the generated js and the js bundle thrown to client while rsc wont throw the already used js bundle to the client
@mohitkumar-jv2bx
@mohitkumar-jv2bx 11 ай бұрын
@@copilotcoder you are explaining it right. Maybe i missed it. But also the customized part of the page could have been rendered on the server also. There is no reason it needs to be only rendered on client. I think that part confused me a bit.
@neociber24
@neociber24 11 ай бұрын
I think the explanation was correct, RSC render the component on the server and recreated on the client.
@baeballeverwizard
@baeballeverwizard 11 ай бұрын
I wonder what the stupidist thing on the stupidest framework for the stupidest language will be
@rishiraj2548
@rishiraj2548 11 ай бұрын
🎉
@Pptruenoz
@Pptruenoz 11 ай бұрын
waercel
@copilotcoder
@copilotcoder 11 ай бұрын
Just love the fact that u r not a rsc fam boy just because others say its awesome....rsc shit but its hyped....
@blipojones2114
@blipojones2114 11 ай бұрын
React is an SPA thing. That it. It wasnt designed to be anything else and the system that has grown around it. Everyone just needs to stay in their lane.
@neociber24
@neociber24 11 ай бұрын
That doesn't make sense, you can use React on the server with SSR for a long time.
@blipojones2114
@blipojones2114 11 ай бұрын
@neociber24 let me say it a different way. React started off as and was designed SPA library.. It should have stayed JUST and spa library instead of doing any server side stuff. Focusing on server side components was a mistake.
@deadchannel8431
@deadchannel8431 11 ай бұрын
@@blipojones2114 server side react is pretty nice to use though.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 491 М.
10 React Antipatterns to Avoid - Code This, Not That!
8:55
Fireship
Рет қаралды 773 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 27 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 13 М.
Here are the technologies I will learn in 2024
21:07
Mehul - Codedamn
Рет қаралды 20 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 206 М.
Something is wrong with ISPs in India 🇮🇳
13:17
Mehul - Codedamn
Рет қаралды 45 М.
FASTEST Way to Learn Coding and ACTUALLY Get a Job
20:03
Dorian Develops
Рет қаралды 11 М.
Reactivity Explained
7:29
Awesome
Рет қаралды 30 М.
React Hooks Crash Course (useMemo, useCallback and more).
31:49
developedbyed
Рет қаралды 88 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 81 М.
BRUTALLY getting hacked is NOT fun
18:01
Mehul - Codedamn
Рет қаралды 10 М.
The ultimate guide to web performance
6:43
Beyond Fireship
Рет қаралды 462 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 27 МЛН