Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user