O
O
olezhenka2020-02-02 18:59:56
React
olezhenka, 2020-02-02 18:59:56

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

1 answer(s)
A
abberati, 2020-02-02
@abberati

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 question

Ask a Question

731 491 924 answers to any question