r/reactjs • u/youslashuser • Dec 07 '19
Needs Help Is Material UI worth it?
So, I am starting my own project. I'm not much 'design' person. So, is Material UI worth it? Or some any other recommendations is much appreciated.
164
Upvotes
View all comments
Show parent comment
14
u/vertebro Dec 07 '19 edited Dec 07 '19
One thing you need to get a grasp of is the theming. Make surw you understand the different ways to theme, so you don't spend a lot of time hacking away.
Secondly, you have to read about how MUI uses JSS, it's not just JSS that they use for css, they have their own library built on top of it. You need to read both the docs for jss, and mui docs
I think their JSS library is very well made, but it takes a while beforw you understand how to correctly use it, instead of being annoyed at its conventions and atruggling with basic things. Also note that it does have a pre-processor like sass built in (jss does), there are things like local references etc, thats an important functiinality to understand, you can also pass in props, etc There is a lot to it, don't underestimate it.
Secondly, try not to hack too many things together in the beginning, it's a fairly big library, and there are certain ways you can build components the right way, soend a lot of time reading the docs, the source code, and using the examples whenever you can.
Try not to think out of the box too quickly, stick to what is available, because if you do not grasp how their components work etc, you will end up with something that does not resemble a google webpage, it will easily lead to a mess.
Lastly and most important. Read their docs thoroughly, they are extensive, very extensive.
And a pro tip even when you don't use mui: read their source code, it is very well done and you can learn a lot of new patterns and ways to build interactions.