dimanche 9 janvier 2022

How is a mediator pattern ( in GOF ) different from container / presentational components in reactjs (intent)?

it looks like they are the same, In mediator we have to explicitly call in other colleagues that some thing has changed, while in presentational / container components the container is re-rendered (may due to some state change) which might be due to an observer pattern. How a mediator and container / presentational components differ in intent is what I am not sure of.

Aucun commentaire:

Enregistrer un commentaire