Skip to content

Commit bad417f

Browse files
committed
cleaner example for use params
1 parent f52aaa3 commit bad417f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/python/use-params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@component
77
def user():
88
params = use_params()
9-
return html.h1(f"User {params['id']} 👤")
9+
return html._(html.h1(f"User {params['id']} 👤"), html.p("Nothing (yet)."))
1010

1111

1212
@component

0 commit comments

Comments
 (0)