What is prop drilling, and how can it be avoided?

Prop drilling occurs when data is passed through many layers of components unnecessarily. It can be avoided using the Context API or state management libraries.

Example: Context API example from Question 1 can be used here to avoid drilling theme value.