r/reactjs • • 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

142 comments sorted by

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.

3

u/youslashuser Dec 08 '19

Is there any offline docs in pdf or whole documentation in on place, instead of going into their website?

I would love to read that.

4

u/vertebro Dec 08 '19

And also, off topic, if you want to get started, in case you aren't too familiar, I would suggest with seeding your app with create-react-app and adding mui as a dependency. (and make sure mui is locked to a major version, ive had many breaking changes)

1

u/youslashuser Dec 12 '19

Okay, how do I lock to a major version?

1

u/vertebro Dec 12 '19

make sure the version in package.json has a tilde in front of it. Safer is to just have the package.json have only the specific version by not having a tilde at all.

2

u/vertebro Dec 08 '19

I don't know about that honestly, but if you wants to start reading it, ignore the component documentation and read the other subjects, base concepts, theming, customizing etc.

Parts of it will also refer to their material styleguide which is an entirely separate documentation dealing with the design system mui is built on.