【发布时间】:2022-01-12 15:24:59
【问题描述】:
我有一个问题,您如何在 App.js 中设置 React 项目表的样式?我更喜欢可以直接添加到文件 App.js 中的内容,因为这是一个小型应用程序实践,无需链接到外部 .css。
const StatisticLine =(props) => {
return (
<div>
<table>
<tbody>
<tr>
<td>{props.text}</td>
<td>{props.value}</td>
</tr>
</tbody>
</table>
</div>
)
}
【问题讨论】:
标签: reactjs styles inline-styles