title: How to select first or last child in jss
body: <p>I'm using <code>JSS(Javascript Style Sheets)</code> in my React project. I was trying to select <code>first-child</code> or <code>last-child</code>, so I tried the following</p>
  
  <pre><code>carousel: {
    "&amp; img:first-child": {
      padding: "0 5px"
    }
  },
  </code></pre>
  
  <p>However, it doesn't work. In Chrome Developer tool, it correctly shows right CSS codes, however for some reaons, it selects every img tags, not just first-child. How can I select only first element in JSS?</p>