Browse Source

docs: update App component usage (#43030)

pull/43033/head
afc163 1 year ago
committed by GitHub
parent
commit
d16f97fc70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/app/index.en-US.md

5
components/app/index.en-US.md

@ -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

Loading…
Cancel
Save