Skip to content

Commit b684abe

Browse files
docs: add django react example project (#88)
1 parent e242994 commit b684abe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ from inertia import merge, inertia
233233
@inertia('ExampleComponent')
234234
def example(request):
235235
return {
236-
'name': lambda: 'Brandon',
237-
'data': merge(Paginator(objects, 3)),
236+
'name': lambda: 'Brandon',
237+
'data': merge(Paginator(objects, 3)),
238238
}
239239
```
240240

@@ -246,8 +246,8 @@ from inertia import defer, inertia
246246
@inertia('ExampleComponent')
247247
def example(request):
248248
return {
249-
'name': lambda: 'Brandon',
250-
'data': defer(lambda: Paginator(objects, 3), merge=True),
249+
'name': lambda: 'Brandon',
250+
'data': defer(lambda: Paginator(objects, 3), merge=True),
251251
}
252252
```
253253

@@ -364,6 +364,7 @@ for you to simulate an inertia response. You can access and use it just like the
364364
## Examples
365365

366366
- [Django Svelte Template](https://github.com/pmdevita/Django-Svelte-Template) - A Django template and example project demonstrating Inertia with Svelte and SSR.
367+
- [Django React](https://github.com/willianantunes/inertia-django-playground): A Django + React project including CRUD operations, form handling, authentication, deployment using Docker, and more.
367368

368369
## Thank you
369370

0 commit comments

Comments
 (0)