【发布时间】:2021-12-20 13:15:51
【问题描述】:
<em><strong>i</strong></em>nputProps 和<em><strong>I</strong></em>nputProps 有什么区别?下面的 2 个TextFields 做同样的事情。我什么时候必须选择一个而不是另一个?
<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,
}}
/>
【问题讨论】:
标签: reactjs material-ui textfield