Projetos
Ver no GitHub
ipenywis/react-solid
Sobre
Princípios S.O.L.I.D. do React para escrever código limpo
Desenvolvimento web e de aplicativosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- -2
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
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 projetos relacionados
Carregando…