Documents / @faasjs/ant-design / FaasReactClient
Function: FaasReactClient()
FaasReactClient(
options?):FaasReactClientInstance
Create and register a FaasReactClient for an Ant Design app.
Use this entrypoint in apps that also use App so faas, useFaas, and
useFaasStream share the same configured client and error feedback behavior.
Parameters
options?
Client configuration including base URL, default request options, and error hooks.
Returns
FaasReactClientInstance
Registered FaasReactClient instance.
Example
import { FaasReactClient } from '@faasjs/ant-design'
FaasReactClient({ baseUrl: '/api/' })