79344639

Date: 2025-01-10 04:58:11
Score: 1
Natty:
Report link

I think what you're looking for is what can you do other than prop drilling -- what you mentioned.

If you want to pass a prop let's say down 10 children, a good idea would be to pass the prop onto a global state like context, redux, zustand, etc. So that you can access the state / data/ etc anywhere without drilling down.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: tim