const App = () => {
const value = `例子:\n今天天气不错`;
const value1 = `例子:\r今天天气不错`;
return (
<>
<TextArea
placeholder="例子: 今天天气不错"
style={{ height: 80 }}
/>
<br />
<TextArea placeholder={value} style={{ height: 80 }} />
<br />
<TextArea placeholder={value1} style={{ height: 80 }} />
</>
);
};
标签:const,TextArea,demo,wen,今天天气,antd,placeholder
From: https://www.cnblogs.com/sk-3/p/16900171.html