Michael Landis
Jul 24, 2021

It might be helpful to loop back to explain how this illustrates the Open/Closed principle. I can see how you could say that <User/> isn’t being modified, but it feels like a bit of a stretch. Functions don’t have thre same concept of hierarchy as classes, so not all of the principles will cleanly match.

Michael Landis
Michael Landis

Written by Michael Landis

Front-end web developer, React enthusiast, vagabond.

No responses yet