Home > @activeviam/activeui-sdk > useActiveUI
useActiveUI() function
A React hook that provides an instance of ActiveUI from React context.
Signature:
export declare function useActiveUI(): ActiveUI;
Returns:
Example
import {useActiveUI} from '@activeviam/activeui-sdk';
function MyComponent() {
const activeUI = useActiveUI();
return <span>{activeUI.about.packageVersion}</span>;
}