I am using Emotion in react.
My elements:
<div class="parent">
<span class="one">1</span>
<div class="two">2</div>
<span class="three">3</span>
<div class="four">4</div>
</div>
.parent {
& > *:not(:first-child) {
color: red;
}
}
It has an error from Emotion:
The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type".
However, it was clear that even replacing :first-child with :first-of-type would not achieve the result I wanted