I'm a Fullstack Engineer from Portugal with a master's degree in Informatics Security and bachelor in Computer Science. Currently working remotely at OpenBB.
I'm a Fullstack Engineer from Portugal with a master's degree in Informatics Security and bachelor in Computer Science. Currently working remotely at OpenBB.
Hi I suggest instead of listening window load event to use componentDidMount (or useEffect(, [])). It is more in react style.
if you see the source code i'm calling the window load inside useEffect but maybe it is redundant to have both the listener and useEffect :)
Yes the window load listener is redundant and can be removed. I just tried this and everything loads correctly.
Thanks for this great hands-on tutorial!
Glad you liked it. Thanks for the input!