We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f72b2d6 commit 4bcdeb5Copy full SHA for 4bcdeb5
README.md
@@ -132,8 +132,8 @@ ultimately be referenced by name in `your-template.html`. `your-template.html`.
132
import idom
133
134
@idom.component
135
-def Hello(name): # component names are camelcase by convention
136
- return Header(f"Hello {name}!")
+def Hello(greeting_recipient): # component names are camelcase by convention
+ return Header(f"Hello {greeting_recipient}!")
137
```
138
139
## `example_app/templates/your-template.html`
@@ -158,7 +158,7 @@ In context this will look a bit like the following...
158
<html>
159
<body>
160
...
161
- {% idom_view "your_app.example_app.components.Hello" name="World" %}
+ {% idom_view "your_app.example_app.components.Hello" greeting_recipient="World" %}
162
</body>
163
</html>
164
0 commit comments