Notice in the code sample below that I'm mapping all the data into ResultItems
{store.results.data.map( result =>
<ResultItem key={result.id}
title={result.title}
description={result.description}
start_date={result.start_date}
end_date={result.end_date}
vendor_name={result.vendor.name}
buyer_name={result.buyer.name}
preview_file={result.preview_file}
status={result.status}
/>)}
what I want to do is keep count of how many resultitems there are and display that number in the DOM
Any ideas on how to do that?