@mui/material incompatible with versions of @types/react > 18.2.60 #41906
Labels
component: input
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
typescript
Steps to reproduce
https://codesandbox.io/p/sandbox/test-w2msfc?file=%2Fsrc%2FInput.tsx%3A9%2C1
Steps:
Current behavior
Possible but verbose solution without TS error (but is it even legit)?
Expected behavior
According to documentation:
https://mui.com/material-ui/guides/composition/#caveat-with-strictmode
It should be enough be enough to wrapt components like this:
Context
Wrapping @mui/material components
Your environment
npx @mui/envinfo
Search keywords: types @types/react forwardRef
The text was updated successfully, but these errors were encountered: