In this lesson we’ll create a higher order component that will allow us to use Material-UI from within in a server-rendered environment. To do this, we will leverage Next.js’ getInitialProps
lifecycle hook in order to avoid any issues with our styles rendering on both the client and server. This lesson will also show you how to get up and running with a custom Material UI theme!
What will happen if we don't use withMaterialUI
and just use the MaterialUI from the client side directly? Please explain more. This is video is confusing for me.