|
|
|
|
|
by maartenbreddels
953 days ago
|
|
On https://solara.dev/docs/tutorial/streamlit we highlight the main differences: * Solara will not continuously re-execute your script as Streamlit does. * Solara will re-execute components instead, only what needs to.
* State in Solara is separate from the UI components, unlike streamlit, where they are strongly linked. * State can be on the application level (global) for simplicity or on the component level (local) for creating reusable components. * Solara should not block the render loop. Long-running functions should be executed in a thread using use_thread. |
|