DEV Community

loading...

Discussion on: PostCSS with CSS Modules and React

Collapse
roblevintennis profile image
Rob Levin

I really love that I found your article which still seems to work (these things are so damn timely haha). I do find the ident thingy super duper frustrating. I'm utilizing css modules composes and for just two classes btn btn-primary it's resulting in src-components-___base__button___3KDTY src-components-___base__btn___1Fsux which is ridonkulous to read.

Also, I don't know that I understand the whole styleName thing. Is that required? I seem to be fine leaving className.

Anyway, thanks for the step by step!

Collapse
daveirvine profile image
Dave Irvine Author

See my other comments for more on styleName, but you don't have to use it, it can exist alongside className or be ignored entirely. :)

Collapse
roblevintennis profile image
Rob Levin

Gotcha thanks

Forem Open with the Forem app