79620715

Date: 2025-05-14 04:14:16
Score: 0.5
Natty:
Report link

You can compose classes together in css-modules using the composes property. For me this is the preferred option in 2025 because it keeps the composition of classes together in one place and also results in easy to read JSX with no extra deps.

See https://developer.adobe.com/commerce/pwa-studio/guides/general-concepts/css-modules/#creating-and-composing-css-modules for how to use it.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: corse32