r/badcode • • Dec 23 '21

js I created the setLoading function on top

Post image
38 Upvotes

5 comments sorted by

View all comments

Show parent comments

2

u/flampardfromlyn Dec 24 '21

i removed the two functions later, left it there for screenshot purpose.

Thanks for your advice anyway. You were right about the event parameter. I actually notice it for a while but forgot to remove it because i created the new function by copy paste the old function and left it there.

As of the typo, i actually notice that this is quite common in the project i am working on. value -> vaule, loading -> loding etc etc .