4 ms·
> To me one of the biggest issue is that almost everyone is deeply afraid of prop drilling. Prop Drilling is considered an anti-pattern for good reason. It ve
by bluefirebrand 4y ago
> To me one of the biggest issue is that almost everyone is deeply afraid of prop drilling.
Prop Drilling is considered an anti-pattern for good reason.
It very quickly turns your project into an absolute mess, making it impossible to determine where props are coming from and where data is actually set.
Keeping that clean is one of the most important things you can do in a frontend codebase imo.
- fabian2k 4y agoThat doesn't make sense, props are easily to follow and they only flow in one direction from parent to children. Excessively deep component structures are a problem, but not only because of the excessive prop drilling they cause.
- the_gipsy 4y agoExcept when props are callbacks, e.g. probably a useState combo.
- aarpmcgee 4y agoimo this was definitely true in my experience before typescript/solid ide support. With tsc and vscode, prop drilling has started to make a lot more sense to me.