How do you assign a value from a successful promise resolve to a mutable ref object in ReactJS?
I'm creating a random movie generator, for that I'm calling an external API to get the movies, and then I'm selecting one movie from the returned list. I managed to make it work like this: export default function Page() {…