M
M
Maxim Korolsky2017-01-08 19:08:48
React
Maxim Korolsky, 2017-01-08 19:08:48

Is it normal to store actions in context or not?

There is a very deep structure.
And I thought why not, instead of cloning it constantly through cloneElement, just simply take it from context where necessary
. But there is little information about the context and it is somehow contradictory.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
KnightForce, 2017-05-15
@KnightForce

About the context:
https://habrahabr.ru/post/266407/
Now I myself use forwarding data and functions for dispatch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question