title: Mosaic-Style Image Gallery (CSS) from array.map() in React
body: <p>Question on styling and layout:</p>
  <p>Is there a way to create a mosaic-style grid layout with CSS from an array of images that are being mapped through in the render function of a Component? I'm attempting to create a mosaic-style grid with NextJS, but a pure React solution is welcome and appreciated. Either one will save me!</p>
  <p>My render function (or, at least, the section pertinent to this post) looks kind of like this:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>return (
    {
      images.map(image =&gt; &lt;img ... /&gt;)
    }
  )</code></pre>
  </div>
  </div>
  </p>