Recap

How do we tell Streamlit to map a Streamlit call to specific frontend code ?

To do that, we run components.declare_component, which returns a function that calls the frontend web server to retrieve the React custom component and trigger its render on the browser.

Static rendering recap

In the next part of this tutorial, we will return a slider from an external library. Wrapping pre-existing React components into Streamlit is actually one of the fastest ways to enhance your application.