haru_nonak
haru_nonak
TTCTheo's Typesafe Cult
Created by Preston on 8/28/2024 in #questions
React Native
Yes, there is a use case for useContext because the thing is, you need login information throughout the entire app. However, you can't pass it with props to all components. The basic idea is to create a global store with useContext or use Redux, so that instead of passing the login state through props, you can access it from anywhere in the app.
4 replies