Skip to content
loading...

re: PostCSS with CSS Modules and React VIEW POST

FULL DISCUSSION
 

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!

 

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. :)

 
code of conduct - report abuse