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