Skip to content

Commit

Permalink
header -> h1
Browse files Browse the repository at this point in the history
For the readme example we currently use `html.header` which doesn't make much sense.

This PR replaces it with `html.h1`
  • Loading branch information
Archmonger authored and rmorshea committed Feb 10, 2022
1 parent bd89383 commit 0c2f4b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ from django_idom import IdomWebsocket
# Components are CamelCase by ReactJS convention
@component
def Hello(websocket: IdomWebsocket, greeting_recipient: str):
return html.header(f"Hello {greeting_recipient}!")
return html.h1(f"Hello {greeting_recipient}!")
```

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

0 comments on commit 0c2f4b1

Please sign in to comment.