Skip to content

Commit 0c2f4b1

Browse files
Archmongerrmorshea
authored andcommitted
header -> h1
For the readme example we currently use `html.header` which doesn't make much sense. This PR replaces it with `html.h1`
1 parent bd89383 commit 0c2f4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from django_idom import IdomWebsocket
2828
# Components are CamelCase by ReactJS convention
2929
@component
3030
def Hello(websocket: IdomWebsocket, greeting_recipient: str):
31-
return html.header(f"Hello {greeting_recipient}!")
31+
return html.h1(f"Hello {greeting_recipient}!")
3232
```
3333

3434
## [`example_app/templates/your-template.html`](https://docs.djangoproject.com/en/dev/topics/templates/)

0 commit comments

Comments
 (0)