Answer the question
In order to leave comments, you need to log in
How to access the App context in any other component?
in view, you can simply write this. $ root in any component and all the root context is in my hands how to do this in your stupid react my ass is already on fire ?????????
Answer the question
In order to leave comments, you need to log in
In this stupid react of ours, before accessing the context, it must be created. And there may be many. And not all root. In general, the average developer does not need contexts, this is more for libraries and those who understand. Go through the training in the react dock, everything works there without context. Well, if you still decide that you need a context, then the documentation describes in detail how to work with it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question