docs: update App component usage (#43030)

This commit is contained in:
afc163 2023-06-15 18:17:36 +08:00 committed by GitHub
parent 37b85e06f2
commit d16f97fc70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,11 +8,12 @@ demo:
cols: 2
---
New App Component which provide global style & static function replacement.
Application wrapper for some global usages.
## When To Use
Static function in React 18 concurrent mode will not well support. In v5, we recommend to use hooks for the static replacement. But it will make user manual work on define this.
- Provide reset styles based on `.ant-app` element.
- You could use static methods of `message/notification/Modal` form `useApp` without put `contextHolder` mannully.
## Examples