Settings

Theme

The 16-Line Pattern That Eliminates Prop Drilling in JavaScript

github.com

3 points by pwmglenn · 2 comments

Reader

2 threads
polaroidkidd

I'm confused. The article states that passing everything into every function is bad but then uses the context to store all the references and passes that into every generator. Yes, it looks slightly cleaner and allows for some better testing, but I can't quite see why we'd need generators for that pattern.

vesna12345

Yesssss

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection