W
W
Worddoc2019-05-16 18:51:20
JavaScript
Worddoc, 2019-05-16 18:51:20

Why can't I get this.context?

Greetings.
https://codesandbox.io/s/muddy-monad-26m4u?fontsize=14
Question: why does InnerComponent store an empty object in this.context instead of a value?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-05-16
@Worddoc

Move the context to a separate file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question