--

I usually do not export the context itself and create a hook to consume the value of the context. Exporting the context makes it succeptible to mutations, which goes against FP principles

--

--

Ismayil Khayredinov
Ismayil Khayredinov

Written by Ismayil Khayredinov

Software engineer who combines optimism with pessimism to build robust and idiot-proof solutions

No responses yet