SOLID is an acronym, where each letter represents one out of five design principles. These principles rely on concepts of classes and interfaces, while JS doesn’t really have either. The way we write modern React code is far from being object-oriented — if anything, it feels more functional. SOLID principles are language agnostic and have a high level of abstraction.
Table of contents
Single responsibility principle (SRP)Open-closed principle (OCP)Liskov substitution principle (LSP)Interface segregation principle (ISP)Dependency inversion principle (DIP)Conclusion5 Comments
Sort: