How to have multiple rows within a HTML input tag?

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

Many Stack Overflow questions have suggested that one should use a textarea instead of an input tag when multiple rows are needed but the problem is that a textarea is not editable i.e. we cannot parse HTML elements inside a textarea.

<input className=”form-control” value={HTMLReactParser(text)} onChange={handleOnChange} id=”myBox” placeholder=’Enter the content’ style={{height: ’15vh’}}/>

‫أضف إجابة

تصفح
تصفح

مجهول يجيب