I'm wondering if there's a good way I could map data from an array where I can display the items in groups of 2. An example would be displaying multiple divs from mapping an array like this:
Array:
const sampleArray = [object1, object2, object3, object4]
Desired output:
<div>
<object1 />
<object2 />
</div>
//next div container will contain object3 and object4