
React Server Components: Part 1 - JSJ 582
JavaScript Jabber
How to Transition From Stateless Components to Stateful Components
Dan: One of the things I really liked when you guys introduced hooks as opposed to class based components is that it suddenly made it very easy to transition from stateless components to stateful components and then back again. That means components were components, you know, wherever whatever their functionality happened to be. And like Tages kind of is kind of saying this is kind of not the case with at least for now with server components versus client components. Joe: You can just put async on the component function and await the fetch or the database query or whatever. But in the client side components, you can't do that. Like why? Dan: It's because the synchronicity model is