Joshua-Disney / shopping-list-frontend

MIT License
0 stars 1 forks source link

Architecture Suggestion: UI Library #27

Closed indifferentghost closed 3 years ago

indifferentghost commented 4 years ago

Abstracting common repeated ui elements like form inputs into a custom in repo ui library has made my initial development time longer, but it provides a nice buffer when refactoring where you only have to change the code in one place.

I believe this is called the adapter pattern. Instead of having to refactor every form input you only have to refactor once as long as you keep the interface with your input component the same.

Joshua-Disney commented 3 years ago

Closing per your suggestion.