Ein kleines React-/TypeScript-Framework als Ausgangspunkt für ein Uni-Projekt.
npm install
npm run devsrc/
├─ framework/
│ ├─ components/
│ │ ├─ Button.tsx
│ │ ├─ Card.tsx
│ │ ├─ Input.tsx
│ │ └─ Page.tsx
│ ├─ FrameworkProvider.tsx
│ ├─ framework.css
│ └─ index.ts
├─ App.tsx
├─ main.tsx
└─ app.css
Die Demo-App nutzt möglichst nur die Komponenten und Funktionen aus src/framework.
Das Framework kapselt wiederverwendbare UI-Elemente und globale Einstellungen wie das Theme.
import { Button, Card, Page } from "./framework";
<Page title="Meine Seite">
<Card title="Beispiel">
<Button onClick={() => alert("Hi")}>Klick mich</Button>
</Card>
</Page>Sinnvolle nächste Schritte:
- Modal-Komponente
- Navigation / Sidebar
- DataTable
- Form-Komponenten
- Routing
- API-Hook
- zusätzliche Themes