我需要替换\n为<br>.但它正如文本中那样.
\n
<br>
如果不使用我怎么能这样做dangerouslySetInnerHTML?
dangerouslySetInnerHTML
line-breaks reactjs
line-breaks ×1
reactjs ×1