Skip to content

Commit 6f77ee8

Browse files
Fix variable name typo in Components API code example (#559)
1 parent 2e819d0 commit 6f77ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/library/components/components-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ result = my_component(greeting="Hello", name="Streamlit")
168168

169169
```javascript
170170
// Receive arguments in frontend:
171-
let greeting = this.props.args["greeting"]; // name = "Hello"
172-
let name = this.props.args["name"]; // greeting = "Streamlit"
171+
let greeting = this.props.args["greeting"]; // greeting = "Hello"
172+
let name = this.props.args["name"]; // name = "Streamlit"
173173
```
174174

175175
- Use `Streamlit.setComponentValue()` to return data from the component to the Python script:

0 commit comments

Comments
 (0)