According to the Material UI guidelines, the component TextField
specifies that its defaultValue
property accepts the type any
. I decided to experiment with this a bit and found that in practice, defaultValue
actually supports multiple types. You can see my test here:
https://codesandbox.io/s/awesome-benz-7vj06. This discrepancy has led me to question the logic behind defining defaultValue
as having the type any
.