You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typescript: styleName usage with @types/react@^17 #292
@yinsang your solution doesn't work with
typescript 4.3.5 and react 17.0.2
Got Property 'styleName' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'
Activity
yinsang commentedon Jul 22, 2021
add file to your project, named react-css-module.d.ts.
Anatoool commentedon Aug 26, 2021
I have the same issue with "@types/react-css-modules": "^4.6.4",
max-mykhailenko commentedon Feb 21, 2023
@yinsang your solution doesn't work with
typescript
4.3.5and react17.0.2Got
Property 'styleName' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'Maybe you have some thoughts how to fix that
leevben commentedon Apr 29, 2024
This works for me(React@18.x)
1.