Could someone explain it to me (please try not to send a link to a website, just explain) ?
2 Likes
Disclaimer: I am not experienced with react and this could all be wrong
Well, I think react keeps track of all elements and other data points in a special way, that could be broken if you for example manually change the DOM. So react uses the affect hook to let you do these changes without messing things up.
I know that, thanks.
So what don’t you get? Could you please clarify.
1 Like
Like the times when you should use it, and the second parameter.
1 Like