docs: add router to DREAMSTACK.md features and comparison
This commit is contained in:
parent
adff40d47f
commit
33ed843abb
1 changed files with 3 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ DreamStack is **real and running** — 6 Rust crates, 34 tests, 8 examples, ~7KB
|
|||
| Layout | Cassowary constraint solver | ✅ |
|
||||
| Types | `Signal<Int>`, `Derived<Bool>` | ✅ Hindley-Milner |
|
||||
| Dev server | `dreamstack dev app.ds` | ✅ HMR |
|
||||
| Router | `route "/path" -> body` / `navigate` | ✅ Hash-based |
|
||||
|
||||
### DreamStack vs React
|
||||
|
||||
|
|
@ -44,6 +45,7 @@ DreamStack is **real and running** — 6 Rust crates, 34 tests, 8 examples, ~7KB
|
|||
| Effects | Auto-tracked, algebraic | `useEffect(..., [deps])` manual |
|
||||
| Conditional | `when x -> text "y"` | `{x && <span>y</span>}` |
|
||||
| Lists | `for item in items -> ...` | `{items.map(i => ...)}` |
|
||||
| Router | `route "/path" -> body` | `react-router` (external) |
|
||||
| Animation | Built-in springs | framer-motion (external) |
|
||||
| Layout | Built-in Cassowary | CSS only |
|
||||
| Types | Native HM, `Signal<T>` | TypeScript (external) |
|
||||
|
|
@ -62,7 +64,7 @@ DreamStack is **real and running** — 6 Rust crates, 34 tests, 8 examples, ~7KB
|
|||
|
||||
### Examples
|
||||
|
||||
`counter.ds` · `list.ds` · `todomvc.html` · `search.html` · `dashboard.html` · `playground.html` · `showcase.html` · `benchmarks.html`
|
||||
`counter.ds` · `list.ds` · `router.ds` · `todomvc.html` · `search.html` · `dashboard.html` · `playground.html` · `showcase.html` · `benchmarks.html`
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue