// 组件的样式处理--
import './index.css'
function App() {
return (
<div className="App">
{/* // 第一种:行内样式---不推荐 */}
<div style={{color:'red'}}>
this is div
{/*第二种:class类名控制*/}
</div>
<div className='foo'>this is div</div>
</div>
)
}
export default App;
.foo{
color:red;}