daisyui / react-daisyui

daisyUI components built with React 🌼
http://react.daisyui.com/
MIT License
886 stars 98 forks source link

Server-side component for Next.js #436

Open Hayao0819 opened 6 months ago

Hayao0819 commented 6 months ago

I am using this project in Next.js 14 with app router.

As it is mentioned in a previous Issue, react-daisyui cannot be used as a server-side component because it uses ThemeContext.

I would like to see a permanent solution that does not use ThemeContext, as benjitrosch mentioned earlier at here and here.

I created this Issue to make it easier for other contributors to find comments. (I could not find anything in the current Issue that explicitly mentions this issue.)

Related Issues are as follows:

I understand that many changes are needed to accomplish this task, but it must help many people.