I have a question. In this js code, I change the value of dimensions. In the first function, I can see the change in the value of dimensions. However, in the second function, the value remains unchanged and is still the same as before. Okay, how to solve this problem?
Thanks!
Dear, I think this is caused by () => this of the arrow function. You can try replacing the arrow function with function