Sep 8, 2018 · 1 min read
I think, we need to understand the purpose of using context or when to use context first. It is clearly mentioned in the reactjs docs that “Context is designed to share data that can be considered “global” for a tree of React components, such as the current authenticated user, theme, or preferred language.” Please go through below link: https://reactjs.org/docs/context.html#when-to-use-context .
Please let me know in case of any doubt.
