📜  reactjs中的css - Html代码示例

📅  最后修改于: 2022-03-11 14:53:21.432000             🧑  作者: Mango

代码示例3
Assuming you have 2 separate files: Example.css and Example.js

Use the '.' to reference a className that you'll use later 

.primary{
    color: red;
}

Hello, World

In this case "primary" in the className is referencing .primary in the CSS file