Documents / @faasjs/ant-design / App
Function: App()
App(
props
):Element
App component with Ant Design & FaasJS
- Based on Ant Design's ConfigProvider and StyleProvider.
- Integrated Ant Design's Message and Notification.
- Based on FaasJS's ConfigProvider.
- Integrated FaasJS's Modal, Drawer and ErrorBoundary.
- Integrated React Router's BrowserRouter.
Parameters
• props: AppProps
Returns
Element
Example
import { App } from '@faasjs/ant-design'
export default function () {
return (
<App
styleProviderProps={{}} // https://ant.design/docs/react/compatible-style#styleprovider
configProviderProps={{}} // https://ant.design/components/config-provider/#API
browserRouterProps={{}} // https://reactrouter.com/en/router-components/browser-router
errorBoundaryProps={{}} // https://faasjs.com/doc/ant-design/#errorboundary
faasConfigProviderProps={{}} // https://faasjs.com/doc/ant-design/#configprovider
>
<div>content</div>
</App>
)