React Native

Hello, I am making a react native app. Can someone please point me in the right direction? I am making a signup screen that has several different screens that I will need to get info from in the signup process before creating that user. Is this a good use case for useContext?
2 Replies
haru_nonak
haru_nonak3mo ago
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.
ayoub
ayoub3mo ago
Don't use redux, use something simpler, use Zustand. You can also use the context but it will be a bit messy.
Want results from more Discord servers?
Add your server