Design Patterns · Senior · Question 45 of 75

What does a Facade over a third-party UI library (e.g. your own <Button> on top of MUI) give you?

Explanation

The app uses only your components with the variants you need, and the library details are hidden. A major version upgrade or migration affects only the wrapper layer. The downside is maintaining the wrappers and not leaking the library's whole API through.

Further reading

Problem with a question

Design Patterns · Senior · question 45

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz