React sets the hierarchical style of ul li span

premise is that you don"t want to add className to each
the first question is how to style all li

li{
    color: yellow
}

I know one way is to use styled-components. Is there a better way?

const Li = styled.li`
    color: yellow
`;
<LI>test</Li>

the second question is how to style future generations when react sets styles

ul li span{
    color: red
}
<ul>
    <li>
        <span>test:test</span>
    </li>
</ul>

it is recommended to use less
top-level box to set class container

.container{
    ul{
       li{
         span{
          }
       }
    }
}

to use a uniform style globally: global

I hope it can be helpful to you

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be1967-39949.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be1967-39949.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?