Providers
The series of context providers
[Deprecated since senhub v4]
// widget.app.tsx
// ...
const Widget = () => {
return (
<UIProvider appId={appId}>
<Provider store={model}>
<WidgetView />
</Provider>
</UIProvider>
)
}
// ...// widget/index.tsx
// ...
import { useUI } from 'senhub/providers'
const Widget = () => {
const {
ui: { width, infix },
} = useUI()
}
// ...Last updated