From e570d39ee8b97a3240f85f8197dd7ca480044c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Be=C5=82czyk?= Date: Tue, 22 Aug 2023 14:54:18 +0200 Subject: [PATCH] Update components-api.md While working on e2e setup for component-template (https://github.com/streamlit/component-template/pull/70) we extract example to separate file, so command for run example component is now invalid. --- content/library/components/components-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/library/components/components-api.md b/content/library/components/components-api.md index 5d7b31c23..66ea84b4e 100644 --- a/content/library/components/components-api.md +++ b/content/library/components/components-api.md @@ -124,14 +124,14 @@ Clone the [component-template GitHub repo](https://github.com/streamlit/componen # React template cd template . venv/bin/activate # or similar to activate the venv/conda environment where Streamlit is installed - streamlit run my_component/__init__.py # run the example + streamlit run my_component/example.py # run the example # or # TypeScript-only template cd template-reactless . venv/bin/activate # or similar to activate the venv/conda environment where Streamlit is installed - streamlit run my_component/__init__.py # run the example + streamlit run my_component/example.py # run the example ``` After running the steps above, you should see a Streamlit app in your browser that looks like this: