I have built an app in react native and I need to use only one instance of socket io for each user. How do I pass it. I don't think passing it as props to components is a good idea. I thought about storing it inside a context but also this is not a good idea. Any suggestions.
Thank you in advance.