Skip to content

Commit 4bcdeb5

Browse files
committed
use different param name in README ex
1 parent f72b2d6 commit 4bcdeb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ ultimately be referenced by name in `your-template.html`. `your-template.html`.
132132
import idom
133133

134134
@idom.component
135-
def Hello(name): # component names are camelcase by convention
136-
return Header(f"Hello {name}!")
135+
def Hello(greeting_recipient): # component names are camelcase by convention
136+
return Header(f"Hello {greeting_recipient}!")
137137
```
138138

139139
## `example_app/templates/your-template.html`
@@ -158,7 +158,7 @@ In context this will look a bit like the following...
158158
<html>
159159
<body>
160160
...
161-
{% idom_view "your_app.example_app.components.Hello" name="World" %}
161+
{% idom_view "your_app.example_app.components.Hello" greeting_recipient="World" %}
162162
</body>
163163
</html>
164164
```

0 commit comments

Comments
 (0)