Skip to content

surenpoghosian/solid-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOLID principles in React Typescript

The SOLID principles are a set of guidelines for writing high-quality, maintainable, and scalable software. They were introduced by Robert C. Martin in his 2000 paper “Design Principles and Design Patterns” to help developers write software that is easy to understand, modify, and extend.

S (Single Responsibility Principle)

A class should have only one reason to change, meaning that a class should have only one job.

O (Open-Closed Principle)

Software entities should be open for extension, but closed for modification.

L (Liskov Substitution Principle)

Objects of a superclass should be replaceable with objects of its subclasses without breaking the application

I (Interface Segregation Principle)

No code should be forced to depend on methods it does not use

D (Dependency Inversion Principle)

High-level modules should not depend on low-level modules, but rather both should depend on abstractions