dio.la

Dani Guardiola’s blog

Jan 1, 1970January 1st, 1970 · 1 minute read · tweet

Where open/closed components shine

A few real-world examples of the open/closed pattern in action + awesome libraries that follow it.

"The open/closed component" series

  1. The open/closed component

The open/closed pattern shines in a few different scenarios. A very cool one is when you want to compose components together, like this:

jsx
function App() {
return (
)
}

Keep up with my stuff. Zero spam.

You're looking at my drafts!

Visit the main site: dio.la