Projects
View on GitHub
ipenywis/react-solid
About
React S.O.L.I.D Principles for writing clean-code
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalReact S.O.L.I.D Principles for writing clean-code

- SRP: Single Responsibility Principle
- OCP: Open-Closed Principle
- LSP: Liskov Substitution Principle
- ISP: Interface Segregation Principle
- DIP: Dependency Inversion Principle
All the principles are explained on CoderOne's youtube channel: https://youtu.be/MSq_DCRxOxw
Code
This Repo has examples for all principles implemented in React. Go inside src/principle there will be all principles there with isolated demos.
You can run the dev server using:
yarn install
yarn dev
Change the component in App.tsx with the corresponding Principle's component name to see the demo.
Example
function App() {
return (
<div className="flex min-w-full h-full justify-center items-center p-8">
{/* <SRP /> */}
{/* <OCP /> */}
{/* <LSP /> */}
<DIP />
</div>
);
}
Explore related projects
Loading…