---
title: "Discussion on \"Using the Open Closed Principle (OCP) in React\" | Hashnode"
description: "Discussion on \"Using the Open Closed Principle (OCP) in React\". A Comparison of Approaches with Code Example"
url: "https://hashnode.com/posts/using-the-open-closed-principle-react/6496e763bdd6b14a02f5a690"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using the Open Closed Principle (OCP) in React](https://blog.adeeshsharma.com/using-the-open-closed-principle-react?utm_source=hashnode&utm_medium=feed)

A Comparison of Approaches with Code Example

Jun 24, 2023 · 6 min read · blog.adeeshsharma.com  
Read the article

-   [#react](https://hashnode.com/tag/react)
-   [#solid-principles](https://hashnode.com/tag/solid-principles)
-   [#ocp](https://hashnode.com/tag/ocp)
-   [#open-closed-principle](https://hashnode.com/tag/open-closed-principle)

## Written by

[Adeesh Sharma](https://hashnode.com/@adeeshsharma)

@adeeshsharma · Hyderabad, India

  
[View profile](https://hashnode.com/@adeeshsharma)

Associate Architect in Software Development

Adeesh is an Associate Architect in Software Development and a post graduate from BITS PILANI, with a B.E. in Computer Science from Osmania University. Adeesh is passionate about web and software development and strive to contribute to technical product growth and decentralized communities. Adeesh is a strategic, diligent, and disciplined individual with a strong work ethic and focus on maintainable and scalable software.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
