What is React Server Components? (Don't Worry About It!)

  Рет қаралды 8,364

Harry Wolff

Harry Wolff

Күн бұрын

Пікірлер
@mustafaalfar7936
@mustafaalfar7936 4 жыл бұрын
Regarding SEO, when React send the SS components not in html format, so can Google crawlers still serve the content?
@BobbyBundlez
@BobbyBundlez 3 жыл бұрын
no. you need something like prerender.io this is why SEO is so SHIT with react
@DedicatedManagers
@DedicatedManagers 3 жыл бұрын
At 5:58 you say the server can render client components but not the other way around. But at another point, I think you say that the server can’t have either state or useEffect type stuff. So how can a server component render a client component if the client component has one of those things in it?
@zomakaja
@zomakaja 4 жыл бұрын
Reminds me of Phoenix LiveView
@rundtmeg
@rundtmeg 3 жыл бұрын
Gatsby Apps and Webpages will get benefits from it also. SSR components would be a better term actually.
@yudhiesh1997
@yudhiesh1997 4 жыл бұрын
Need more videos on React and Typescript!
@damiansutton80
@damiansutton80 4 жыл бұрын
Sorry mate. I have to strongly disagree about this not being important to people that only use React on the client side. If you have a massive client side React that is not performing due to the need to download and parse massive amounts of JavaScript before you can get a meaningful first render, React Server Components could be a great option to vastly improve the performance of your website and especially your first meaningful render.
@hswolff
@hswolff 4 жыл бұрын
Definitely true - but! That means you’re using react on the server! But good to raise awareness for the client only react apps that are hurting.
@DanAbramov8
@DanAbramov8 4 жыл бұрын
Well, I'd say lots of people don't use React on the server _because_ it didn't solve this problem adequately before (you still had to download all JS) and because it was hard/annoying to wire up data fetching. So arguably some people who have client-only apps would still be interested in Server Components!
@hswolff
@hswolff 4 жыл бұрын
Absolutely! I think crossing that hurdle to standing up a node server to solve for this is a high point of friction. I’d bet adoption for server components will sky rocket when/if it becomes available for other server runtimes.
@DanAbramov8
@DanAbramov8 4 жыл бұрын
What kind of runtimes do you have in mind?
@DanAbramov8
@DanAbramov8 4 жыл бұрын
Btw, another use case is static site generation. E.g. imagine you could get a statically generated React blog by writing a component that just maps over the filesystem.
@runonce
@runonce 4 жыл бұрын
Finally some alternative to solve client waterfall
@Aresky
@Aresky 4 жыл бұрын
Great content!
@cauebahia
@cauebahia 4 жыл бұрын
Thanks for this video!
@hswolff
@hswolff 4 жыл бұрын
My pleasure!
@kumarvishalben
@kumarvishalben 3 жыл бұрын
Noob : why not just use database from frontend and skip the backend. React Team : Yes 😂
@BobbyBundlez
@BobbyBundlez 3 жыл бұрын
lmfao
@MegaRelja
@MegaRelja 4 жыл бұрын
There is the same thing in Java Servlets. There is nothing new, they are just reinventing the wheel...
@TheSldsnake
@TheSldsnake 4 жыл бұрын
Yes but i think the frontend dev miss 10 years and only view js frameworks
@DanAbramov8
@DanAbramov8 4 жыл бұрын
Not really, there's quite a bit of difference. Server Components tree can be refetched _without_ losing Client state inside of it (such as focus, scroll position, inputs, and other things). This makes it pretty different from traditional server approaches. Also, you can reuse the same components between Client and Server, depending on the use case. This is also different from traditional server-only approaches.
@MegaRelja
@MegaRelja 4 жыл бұрын
@@DanAbramov8 Thanks for the clarification!
@jean-bricerougeot6761
@jean-bricerougeot6761 3 жыл бұрын
How can you answer the "Should you care ?" question without knowing what it is ? May be you can start by telling us what is, so that we can use our own critical thinking to decide whether we should care or not !? ^^ Thanks
@hswolff
@hswolff 3 жыл бұрын
You’re welcome!
@archmad
@archmad 4 жыл бұрын
goodbye graphql
What was your hardest part of learning React?
11:49
Harry Wolff
Рет қаралды 4,6 М.
What is Tailwind? (and why is it awesome?)
18:15
Harry Wolff
Рет қаралды 63 М.
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
What Vue.js Does Better Than React
24:29
Harry Wolff
Рет қаралды 38 М.
Did RSCs Really Turn React Into PHP?
18:48
Jack Herrington
Рет қаралды 35 М.
React server components from scratch!
19:43
Ben Holmes
Рет қаралды 37 М.
Why I don't use React-Query and tRPC in Next.js
18:58
ByteGrad
Рет қаралды 100 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,5 МЛН
React Server Components Change Everything
15:48
Web Dev Simplified
Рет қаралды 209 М.
React Server Components Explained - Are They Better Than SSR?
10:52
Monsterlessons Academy
Рет қаралды 922
Why I Love useReducer
22:40
Harry Wolff
Рет қаралды 92 М.
Backbone.js Was The Future
18:11
Harry Wolff
Рет қаралды 14 М.