These components are then compatible with RSC/Next
Future
It would be nice if this wasn't an all-or-nothing approach. Per component eluded my attempts. I think it may have to do with the single-file bundle 🤔
References
This is still early on so some better solutions may come about.
What
Uses config to add 'use client'; to shared-ui lib
Why
These components are then compatible with RSC/Next
Future
It would be nice if this wasn't an all-or-nothing approach. Per component eluded my attempts. I think it may have to do with the single-file bundle 🤔
References
This is still early on so some better solutions may come about.
See: https://github.com/egoist/tsup/issues/835
Also: https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#advice-for-library-authors which references https://github.com/shuding/react-wrap-balancer/blob/main/tsup.config.ts#L10-L13