UNPKG

streamlit-component-lib-react-hooks

Version:

An npm package that provides support code for creating [Streamlit Components](https://docs.streamlit.io/en/stable/streamlit_components.html) with React and React Hooks.

8 lines (7 loc) 271 B
import React from "react"; import { RenderData } from "streamlit-component-lib"; export declare const renderDataContext: React.Context<RenderData | undefined>; /** * Returns `RenderData` received from Streamlit. */ export declare const useRenderData: () => RenderData;