Skip to content

Commit f95d1fd

Browse files
Update components-api.md (#789)
While working on e2e setup for component-template (streamlit/component-template#70) we extract example to separate file, so command for run example component is now invalid.
1 parent d775ce7 commit f95d1fd

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
@@ -124,14 +124,14 @@ Clone the [component-template GitHub repo](https://github.com/streamlit/componen
124124
# React template
125125
cd template
126126
. venv/bin/activate # or similar to activate the venv/conda environment where Streamlit is installed
127-
streamlit run my_component/__init__.py # run the example
127+
streamlit run my_component/example.py # run the example
128128

129129
# or
130130

131131
# TypeScript-only template
132132
cd template-reactless
133133
. venv/bin/activate # or similar to activate the venv/conda environment where Streamlit is installed
134-
streamlit run my_component/__init__.py # run the example
134+
streamlit run my_component/example.py # run the example
135135
```
136136

137137
After running the steps above, you should see a Streamlit app in your browser that looks like this:

0 commit comments

Comments
 (0)