Documents / @faasjs/ant-design / FaasDataWrapper
Function: FaasDataWrapper()
FaasDataWrapper<
T
>(props
):JSX.Element
FaasDataWrapper component with Loading
Type Parameters
• T = any
Parameters
• props: FaasDataWrapperProps
<T
>
Returns
JSX.Element
Example
function MyComponent (props: FaasDataInjection) {
return <div>{ props.data }</div>
}
function MyPage () {
return <FaasDataWrapper action="test" params={{ a: 1 }}>
<MyComponent />
</FaasDataWrapper>
}