I have an attribute of imgID and need to create an <li> element for each one, but the number of images could change so this needs to be dynamic in someway.
I have looked at the Gutenberg Gallery block for inspiration and that uses .map but I am not sure how to implement that into my block.