我确实在我的反应项目中制作了一种风格。就像
样式.css:
.headingStyle {
background-color: purple;
text-align: center;
}
我的反应组件是:
import React from 'react'
import '../cse_component/style.css'
export default function heardTitle() {
return (
<div>
<h1 ClassName='headingStyle'>Todo List</h1>
</div>
)
}
但是为什么我不能在我的项目中改变任何东西?