Next.js Discord

Discord Forum

Next 13 along with Material UI

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
Hi there,

I have some doubts about using Next 13 along with MUI.
MUI Components usees some stuff under the hood, among others - createContext.

From that point the only one way to use it is to make my comonent client side. Of course I don't want to make my main component as client side so I am kind of forced to create a wrapper for each MUI Component I'd like to use in a future.
It is always a good idea to have some kind of wrapper over any library (either UI and straight logic) to have more control in the future but it might be a bit frustrating, especially in a case when I want to develop my app ASAP and then come back to refactor.

I tried some googling but did not find anything interesting.

Does defining layout file as CLIENT SIDE makes entire page client side or it remains server side?
Any tips, workarounds, thoughts about it? I'd appreciate every piece of help 🙂

8 Replies

i am personally waiting until mui gets with the times
@DirtyCajunRice | AppDir i am personally waiting until mui gets with the times
Barbary LionOP
You mean you are not using MUI at all?
any other UI libraries/frameworks?
@Barbary Lion You mean you are not using MUI at all?
yeah i totally ripped it out of my life lol.
@Barbary Lion any other UI libraries/frameworks?
you. can do a lot more than you think with just tailwindcss
but people seem to like shadcn
and i think theres another one… daisyui?
Barbary LionOP
Never heard of it. I will check, thanks 🙂