One of the most satisfying discoveries as a React dev: Needless prop drilling
One of the most satisfying discoveries as a React dev: Needless prop drilling.
Me: "Hrmm, where is this prop coming from?" I trace up through 5 levels of parent components only to realize... the function is only used 5 levels down!
So I cut the function and move it 5 levels down.
No more prop drilling.