Why I avoid nesting closures

1 · Kent C. Dodds · Dec. 13, 2019, midnight
Summary
If I come across code like this: Chances are, I'll refactor it to this: I tend to put functions as close to the left side of the screen as reasonably possible. By that I mean, I like to reduce nesting of closures. A closure is what is created when…...