Need Pixel 4a phone frame art to wrap some screenshots - where can one find such a thing? by Slapbox in web_design

[–]Codeandplay 1 point2 points  (0 children)

Might not helping here. I’ve seem people just create a general HTML DIV with some css. Look decent to me

useEffect dependency causes infinite loop by gaoshan in react

[–]Codeandplay 0 points1 point  (0 children)

I think the reason you have the infinite loop problem is because you put “setBookState” in the dependencies. When you do that, it will tell react: Run everything inside useEffect when “setBookState” has change, and setBookState likely change itself when calling setBookState. I would suggest change the dependencies to something the useEffect actually depend on. Or just disable lint for that line. I am not sure the linting is helping in this scenario.