Skip to content

Tag: firebase-storage

return a string from a function in reactjs

I’m trying to return a string from a function this is the function : But it returned undefined, although when I log it to the console it gives the value that I expect. I thought about creating a state, but I can’t because I’m going to call this function several times and I don’t think …