プロジェクト
概要
クリーンコードを書くためのReact S.O.L.I.D原則
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -2
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルReact 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>
);
}
関連プロジェクトを探す
読み込み中…