jeudi 15 novembre 2018

Mediator patten for react components

I would like to know how we can apply mediator pattern to react components.

For example I have a set of buttons like Activate, De-Activate, Reset etc for different forms. I want to implement a mediator pattern so that I will not have to handle these buttons manually for each form.

Mediator should notify the buttons to be enable/disable/ or change label.

Please share if anyone have implemented something like this.

Aucun commentaire:

Enregistrer un commentaire