Regarding SEO, when React send the SS components not in html format, so can Google crawlers still serve the content?
@BobbyBundlez3 жыл бұрын
no. you need something like prerender.io this is why SEO is so SHIT with react
@DedicatedManagers3 жыл бұрын
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?
@zomakaja4 жыл бұрын
Reminds me of Phoenix LiveView
@rundtmeg3 жыл бұрын
Gatsby Apps and Webpages will get benefits from it also. SSR components would be a better term actually.
@yudhiesh19974 жыл бұрын
Need more videos on React and Typescript!
@damiansutton804 жыл бұрын
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.
@hswolff4 жыл бұрын
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.
@DanAbramov84 жыл бұрын
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!
@hswolff4 жыл бұрын
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.
@DanAbramov84 жыл бұрын
What kind of runtimes do you have in mind?
@DanAbramov84 жыл бұрын
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.
@runonce4 жыл бұрын
Finally some alternative to solve client waterfall
@Aresky4 жыл бұрын
Great content!
@cauebahia4 жыл бұрын
Thanks for this video!
@hswolff4 жыл бұрын
My pleasure!
@kumarvishalben3 жыл бұрын
Noob : why not just use database from frontend and skip the backend. React Team : Yes 😂
@BobbyBundlez3 жыл бұрын
lmfao
@MegaRelja4 жыл бұрын
There is the same thing in Java Servlets. There is nothing new, they are just reinventing the wheel...
@TheSldsnake4 жыл бұрын
Yes but i think the frontend dev miss 10 years and only view js frameworks
@DanAbramov84 жыл бұрын
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.
@MegaRelja4 жыл бұрын
@@DanAbramov8 Thanks for the clarification!
@jean-bricerougeot67613 жыл бұрын
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