There's a problem with extending Attributes and HTMLAttributes interface with styleName with @types/react@^17. It simply has no effect:
Property 'styleName' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
"@types/react-css-modules": "^4.6.2",
