Amy Blankenship
Oct 19, 2022

--

If they were truly encapsulated, then nothing unexpected could happen. The needles could not at all be accessed through the wall of the black box. That's why React context is so dangerous--it encourages the needles to make themselves available to random magnets throughout the program and random magnets to grab whatever needles they happen to want.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (1)