useApi()
Home > @backstage/core-plugin-api
> useApi
React hook for retrieving APIs.
Signature:
function useApi<T>(apiRef: ApiRef<T>): T;
Parameters
Parameter |
Type |
Description |
---|---|---|
apiRef |
ApiRef<T> |
Reference of the API to use. |
T
Home > @backstage/core-plugin-api
> useApi
React hook for retrieving APIs.
Signature:
function useApi<T>(apiRef: ApiRef<T>): T;
Parameter |
Type |
Description |
---|---|---|
apiRef |
ApiRef<T> |
Reference of the API to use. |
T