Igor Snitkin
May 10, 2023

--

Let's have a look at the final version of the `Title` component. It's now a worthless piece of crap, as it's not reusable unless located in a subtree wrapped by the product context provider, right? There is also another famous thing called the Interface segregation principle (aka "I" in SOLID) which begs the question of why on Earth the Title should know about the whole product. I hope this helps

--

--

Igor Snitkin
Igor Snitkin

Responses (1)