News for hackers. Stuff that matters.
Re:Lessons learned as a React contractor by fphilipe on Friday January 06, 2017 @07:39AM (#13335828)
Re:Lessons learned as a React contractor by vog on Friday January 06, 2017 @07:44AM (#13335851)
No, Proxy fits better. To be a Facade, it would have to be implemented inside React to hide React internals.

Although many patterns boil down to wrappers around objects (Delegator, Proxy, Adapter, Facade, etc.), but that doesn't make them all the same, even though their UML diagrams may look almost the same. The difference is: On which side is the wrapper? Which interfaces does it provide? Which interfaces does it use? Those details depend heavily on which architectural problem you want so solve (and it should be one you actually have). The pattern then guides you through how exactly that wrapper should look like in that particular case.