How to display all the images from firebase storage in React?

I am trying to display images from Firebase storage in my React app.
I could get all images from Firebase Storage using by listall.
but I don’t know how to display these on ui.
I tried to use map method but didn’t work.
Also, I want to keep these display even if page is reload.
should I use localstrage or useEffect?