Component - Why global state avoids prop drilling
This UI example shows how using a global state in a React Native app helps avoid prop drilling. Prop drilling means passing data through many layers of components, even if some layers don't need the data. Global state lets components access shared data directly, making the code simpler and easier to manage.