e.target.value.replace (/ \ n / g, ' < br /> ') // with / g can solve the regular expression \ n replace <br/>
If a string, then you can directly replace
e.target.value.replace (/ \ n / g, ' < br /> ') // with / g can solve the regular expression \ n replace <br/>
If a string, then you can directly replace