Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The 16-Line Pattern That Eliminates Prop Drilling in JavaScript (github.com/doeixd)
3 points by pwmglenn on July 21, 2025 | hide | past | favorite | 2 comments


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.


Yesssss




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: