I am trying to fitch words randomly from the api and im trying to console log them, but the function is being re rendered multiple times although im not using it anywhere else, i tried many things but yet it is not working. Please help
I am trying to console log it the word only once, I tried using the await async didn't work, i tried using UseRef still didn't work.[enter image description here][1]
[1]: https://i.stack.imgur.com/orp2v.png this image will show my code. any help will be appreciated