3 ms·
Thanks for the answer. > multiple times faster than when using Context Oh cool! Do you have some benchmark results for that? Would be awesome to post them in
by sdfhbdf 6y ago
Thanks for the answer.
> multiple times faster than when using Context
Oh cool! Do you have some benchmark results for that? Would be awesome to post them in the README if you can.
> simpler because you don't have to use Providers at all
I think the Provider pattern is part of the functional programming pattern with React, so while I do agree it might be harder to get used to but it underlines the no side-effects affecting the state of a given React components and its children.
At scale proper action, reducer pattern is helpful to manage a complicated state tree to still make it functional, easily testable and giving the same end result as a function of state.