How to use the traditional CSS style selector for React components

1. Traditional setting styles can be implemented using a similar selector below

div p {
    font-size: 30px;
    color: -sharpeee;
}

<div>
    

aaa

aaa

aaa

aaa

</div>

2. In React, is it possible to use a css selector similar to the one above to set the Style, of a component? if so, how can it be done?
(for example, components of antd can be set to Style, in some cases repetitive, I don"t want to add Style or ClassName to each)

Jan.24,2022

is not the same as a normal style reference?


is the same as the traditional one, no different.

Menu