Javascript – Running an async function in a React return
I'm trying to display the users name from a firebase db within a react return function. I have a function called getUserName which retrieves the username from the db and returns it. const getUserName = async () => { try…