title: Functional React Component with an argument in curly braces
body: <p>I recently came across this piece of code on a website</p>
  
  <pre><code>const List = ({ items }) =&gt; (
    &lt;ul className="list"&gt;
      {items.map(item =&gt; &lt;ListItem item={item} /&gt;)}
    &lt;/ul&gt;
  );
  </code></pre>
  
  <p>Why have they wrapped the items in curly braces and is it a prop</p>