Update README.md

This commit is contained in:
2026-03-31 17:53:06 +00:00
parent f0ab9fc575
commit 5cd0223670

View File

@@ -4,13 +4,16 @@ A modern Django + React Framework for perfectionists with deadlines.
Write a Pydantic function, add the @client decorator, use configurable **Shape** types for your models.
Djarea generates the entire React client: all your type interfaces, function call hooks, autoatic JWT, and a simple `<DjangoContext/>` to make it all work.
No API routing, no serializers, no REST/CRUD bullshit.
```python
@client
def current_user(request) -> UserShape:
return UserShape.query(lambda qs: qs.filter(pk=request.user.pk))[0]
```
Djarea generates the entire React client: all your type interfaces, function call hooks, automatic JWT, and a simple `<DjangoContext/>` to make it all work. No API routing, no serializers, no REST/CRUD bullshit.
```tsx
const user: UserShape = useCurrentUser() // typed, cached, SSR-hydrated