What are the differences between inputProps
and InputProps
? The 2 TextField
s below do the same thing. When do I have to choose one over the other?
<TextField
label="inputProps"
inputProps={{
name: 'inputProps',
type: 'number',
placeholder: 'placeholder',
value,
onChange: handleChange,
}}
/>
<TextField
label="InputProps"
InputProps={{
name: 'InputProps',
type: 'number',
placeholder: 'placeholder',
value,
onChange: handleChange,
}}
/>