2 ms·
It's not about loose or tight coupling, it's about things that React Context enables you do to. You're literally also hiding contextual data when using a partia
by eliseumds 5y ago
It's not about loose or tight coupling, it's about things that React Context enables you do to. You're literally also hiding contextual data when using a partially-applied singleton, and you end up with code that is not safe when writing an event-looped single-threaded application (any NodeJS server implementation). Users cannot use react-helmet when doing stream-rendering, for example, because it's a singleton. See https://news.ycombinator.com/item?id=27032394 https://news.ycombinator.com/item?id=27032394.