What about the proprietary css style in react?

when I am learning react, when I write the style, the class name className written in the two components is the same, and it will all work. In vue, the control of the style has a scoped to limit the scope of the style. I do not know whether react has similar operations to manage the scope of the style. I hope the great gods can help solve one or two puzzles, Thank youyou!

Apr.05,2021
The style management of

react is relatively weak. Officially, it is recommended that style be written directly into the jsx tag


you can do


with css module.
<div>
    <div className='a'>
        <div className='c'></div>
    </div>
     <div className='b'>
        <div className='c'></div>
    </div>
</div>
Menu