I don\'t think this is a duplicate of react promise in functional component since that triggers the promise on an event. I want to display a value of a promise specifically