Interpolation
Embed any Python expression inside {{ }}:
def greeting(name: str):
return <>
<h1>Hello, {{ name }}!</h1>
<p>You have {{ len(messages) }} messages.</p>
</>
The same syntax works in attribute values — see Attributes for details.