4 ms·
I don’t know much about the former, but it’s not clear why React server components are going to kill library support.
by yunohn 3y ago
I don’t know much about the former, but it’s not clear why React server components are going to kill library support.
- siquick 3y agoPretty much every library I have tried to use with Next App Router (and therefore RSC) doesn’t work with RSC. I’m sure it will change but we’ll be sticking for Next Pages for a while yet.
- solarkraft 3y agoI think you may have missed that you can circumvent all of this by declaring your components to be client components.
- flagrant_taco 3y agoWhat's the point of using RSC if you have to mark everything as client components? At best you're getting SSR support since client components actually run on the sever as well, but there are already cleaner solutions for SSR react components that rehydrate in the browser.
- solarkraft 3y agoYou're not using RSC if you're marking everything as a client component. The point is that you can do that and continue to use your old components while also able to use the new app router infrastructure.
- flagrant_taco 3y agoIs there that much benefit to just the file structure and router? That feels like a ton of refactoring just to have the same and result for a user, but maybe I'm missing some important gains of the app directory.