<textarea rows='3'
className='form-control'
placeholder='Enter About your description'/>
预期的类型来自属性 'rows',它在类型 'DetailedHTMLProps, HTMLTextAreaElement>' 上声明
最佳答案
试试这个:
<textarea rows={3}
className='form-control'
placeholder='Enter About your description'/>
关于reactjs - 在 TextArea : Type 'string' is not assignable to type number 中 react typescript 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60115396/